Skip to content

Commit

Permalink
Sklearn import style (#28)
Browse files Browse the repository at this point in the history
* deprecate 3.8 here too

* sklearn style

* sklearn style

* sklearn style

* enhance readability

* expand to README too
  • Loading branch information
CodyCBakerPhD authored Jan 31, 2024
1 parent fbda0ed commit e203a3f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/deploy-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ name: Deploy tests
on:
pull_request:

jobs:
cancel-previous-runs:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
concurrency: # Cancel previous workflows on the same pull request
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
assess-file-changes:
uses: catalystneuro/tqdm_publisher/.github/workflows/assess-file-changes.yml@main

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ async def run_multiple_sleeps(sleep_durations):

progress_bar.unsubscribe(callback_id)

n = 10**5
sleep_durations = [random.uniform(0, 5.0) for _ in range(n)]
number_of_tasks = 10**5
sleep_durations = [random.uniform(0, 5.0) for _ in range(number_of_tasks)]
asyncio.run(run_multiple_sleeps(sleep_durations=sleep_durations))
```

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ authors = [
]
description = "Extends the base tqdm progress bar with a subscribe method that can expose updates to external (potentially non-Python) processes."
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.9"
license = {file = "license.txt"}

keywords = ["tqdm", "progressbar", "progressmeter", "progress", "bar", "meter", "time", "pubsub", "publish-subscribe pattern"]
Expand Down
4 changes: 3 additions & 1 deletion src/tqdm_publisher/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
from .publisher import TQDMPublisher
from ._publisher import TQDMPublisher

__all__ = ["TQDMPublisher"]
File renamed without changes.
6 changes: 3 additions & 3 deletions src/tqdm_publisher/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ async def sleep_func(sleep_duration: float = 1) -> float:


def create_tasks():
n = 10**5
sleep_durations = [random.uniform(0, 5.0) for _ in range(n)]
tasks = []
number_of_tasks = 10**5
sleep_durations = [random.uniform(0, 5.0) for _ in range(number_of_tasks)]

tasks = list()
for sleep_duration in sleep_durations:
task = asyncio.create_task(sleep_func(sleep_duration=sleep_duration))
tasks.append(task)
Expand Down

0 comments on commit e203a3f

Please sign in to comment.