Skip to content

Commit

Permalink
linting passes locally
Browse files Browse the repository at this point in the history
  • Loading branch information
jfhbrook committed Jul 31, 2024
1 parent 65e269c commit 8e24809
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 70 deletions.
6 changes: 3 additions & 3 deletions pyee/trio.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ async def context(
raise PyeeException("Uninitialized nursery or nursery manager")

async def __aenter__(self) -> "TrioEventEmitter":
self._context: Optional[
AbstractAsyncContextManager["TrioEventEmitter"]
] = self.context()
self._context: Optional[AbstractAsyncContextManager["TrioEventEmitter"]] = (
self.context()
)
return await self._context.__aenter__()

async def __aexit__(
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --output-file=requirements.txt pyproject.toml
#
typing-extensions==4.8.0
typing-extensions==4.9.0
# via pyee (pyproject.toml)
122 changes: 58 additions & 64 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,37 +1,39 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --extra=dev --output-file=requirements_dev.txt pyproject.toml
#
alabaster==0.7.13
alabaster==0.7.16
# via sphinx
appnope==0.1.4
# via ipykernel
asttokens==2.4.1
# via stack-data
async-generator==1.10
# via trio-typing
attrs==23.1.0
attrs==23.2.0
# via
# automat
# outcome
# trio
# twisted
automat==22.10.0
# via twisted
babel==2.13.1
babel==2.14.0
# via sphinx
black==24.3.0
# via
# flake8-black
# pyee (pyproject.toml)
bracex==2.4
# via wcmatch
build==1.0.3
# via pyee (pyproject.toml)
cachetools==5.3.2
# via tox
certifi==2024.7.4
# via requests
cffi==1.16.0
# via cryptography
chardet==5.2.0
# via tox
charset-normalizer==3.3.2
Expand All @@ -45,7 +47,7 @@ colorama==0.4.6
# via
# griffe
# tox
comm==0.2.0
comm==0.2.1
# via ipykernel
constantly==23.10.4
# via twisted
Expand All @@ -55,29 +57,29 @@ debugpy==1.8.0
# via ipykernel
decorator==5.1.1
# via ipython
distlib==0.3.7
distlib==0.3.8
# via virtualenv
docutils==0.20.1
# via
# readme-renderer
# sphinx
executing==2.0.1
# via stack-data
fastjsonschema==2.19.0
fastjsonschema==2.19.1
# via validate-pyproject
filelock==3.13.1
# via
# tox
# virtualenv
flake8==6.1.0
flake8==7.0.0
# via
# flake8-black
# pyee (pyproject.toml)
flake8-black==0.3.6
# via pyee (pyproject.toml)
ghp-import==2.1.0
# via mkdocs
griffe==0.38.0
griffe==0.40.1
# via mkdocstrings-python
hyperlink==21.0.0
# via twisted
Expand All @@ -88,24 +90,23 @@ idna==3.7
# trio
imagesize==1.4.1
# via sphinx
importlib-metadata==6.8.0
importlib-metadata==7.0.1
# via
# keyring
# trio-typing
# twine
incremental==22.10.0
# via twisted
iniconfig==2.0.0
# via pytest
ipykernel==6.27.0
ipykernel==6.29.2
# via jupyter-console
ipython==8.17.2
ipython==8.22.1
# via
# ipykernel
# jupyter-console
isort==5.12.0
isort==5.13.2
# via pyee (pyproject.toml)
jaraco-classes==3.3.0
jaraco-classes==3.3.1
# via keyring
jedi==0.19.1
# via ipython
Expand All @@ -124,22 +125,22 @@ jupyter-client==8.6.0
# jupyter-console
jupyter-console==6.6.3
# via pyee (pyproject.toml)
jupyter-core==5.5.0
jupyter-core==5.7.1
# via
# ipykernel
# jupyter-client
# jupyter-console
keyring==24.3.0
# via twine
markdown==3.5.1
markdown==3.5.2
# via
# mkdocs
# mkdocs-autorefs
# mkdocstrings
# pymdown-extensions
markdown-it-py==3.0.0
# via rich
markupsafe==2.1.3
markupsafe==2.1.5
# via
# jinja2
# mkdocs
Expand Down Expand Up @@ -168,17 +169,17 @@ mkdocstrings[python]==0.24.0
# via
# mkdocstrings-python
# pyee (pyproject.toml)
mkdocstrings-python==1.7.5
mkdocstrings-python==1.8.0
# via mkdocstrings
more-itertools==10.1.0
more-itertools==10.2.0
# via jaraco-classes
mypy-extensions==1.0.0
# via
# black
# trio-typing
nest-asyncio==1.5.8
nest-asyncio==1.6.0
# via ipykernel
nh3==0.2.14
nh3==0.2.15
# via readme-renderer
outcome==1.3.0.post0
# via
Expand All @@ -187,6 +188,7 @@ outcome==1.3.0.post0
packaging==23.2
# via
# black
# build
# ipykernel
# mkdocs
# pyproject-api
Expand All @@ -197,41 +199,39 @@ packaging==23.2
# validate-pyproject
parso==0.8.3
# via jedi
pathspec==0.11.2
pathspec==0.12.1
# via
# black
# mkdocs
pexpect==4.8.0
pexpect==4.9.0
# via ipython
pkginfo==1.9.6
# via twine
platformdirs==4.0.0
platformdirs==4.2.0
# via
# black
# jupyter-core
# mkdocs
# mkdocstrings
# tox
# virtualenv
pluggy==1.3.0
pluggy==1.4.0
# via
# pytest
# tox
prompt-toolkit==3.0.41
prompt-toolkit==3.0.43
# via
# ipython
# jupyter-console
psutil==5.9.6
psutil==5.9.8
# via ipykernel
ptyprocess==0.7.0
# via pexpect
pure-eval==0.2.2
# via stack-data
pycodestyle==2.11.1
# via flake8
pycparser==2.21
# via cffi
pyflakes==3.1.0
pyflakes==3.2.0
# via flake8
pygments==2.17.2
# via
Expand All @@ -240,16 +240,18 @@ pygments==2.17.2
# readme-renderer
# rich
# sphinx
pymdown-extensions==10.4
pymdown-extensions==10.7
# via mkdocstrings
pyproject-api==1.6.1
# via tox
pytest==7.4.3
pyproject-hooks==1.0.0
# via build
pytest==8.0.1
# via
# pyee (pyproject.toml)
# pytest-asyncio
# pytest-trio
pytest-asyncio==0.21.1 ; python_version >= "3.4"
pytest-asyncio==0.23.5 ; python_version >= "3.4"
# via pyee (pyproject.toml)
pytest-trio==0.8.0 ; python_version >= "3.7"
# via pyee (pyproject.toml)
Expand All @@ -264,7 +266,7 @@ pyyaml==6.0.1
# pyyaml-env-tag
pyyaml-env-tag==0.1
# via mkdocs
pyzmq==25.1.1
pyzmq==25.1.2
# via
# ipykernel
# jupyter-client
Expand All @@ -282,8 +284,6 @@ rfc3986==2.0.0
# via twine
rich==13.7.0
# via twine
secretstorage==3.3.3
# via keyring
six==1.16.0
# via
# asttokens
Expand All @@ -296,24 +296,18 @@ snowballstemmer==2.2.0
sortedcontainers==2.4.0
# via trio
sphinx==7.2.6
# via
# pyee (pyproject.toml)
# sphinxcontrib-applehelp
# sphinxcontrib-devhelp
# sphinxcontrib-htmlhelp
# sphinxcontrib-qthelp
# sphinxcontrib-serializinghtml
sphinxcontrib-applehelp==1.0.7
# via pyee (pyproject.toml)
sphinxcontrib-applehelp==1.0.8
# via sphinx
sphinxcontrib-devhelp==1.0.5
sphinxcontrib-devhelp==1.0.6
# via sphinx
sphinxcontrib-htmlhelp==2.0.4
sphinxcontrib-htmlhelp==2.0.5
# via sphinx
sphinxcontrib-jsmath==1.0.1
# via sphinx
sphinxcontrib-qthelp==1.0.6
sphinxcontrib-qthelp==1.0.7
# via sphinx
sphinxcontrib-serializinghtml==1.1.9
sphinxcontrib-serializinghtml==1.1.10
# via sphinx
stack-data==0.6.3
# via ipython
Expand All @@ -323,9 +317,9 @@ tornado==6.4.1
# via
# ipykernel
# jupyter-client
tox==4.11.3
tox==4.13.0
# via pyee (pyproject.toml)
traitlets==5.13.0
traitlets==5.14.1
# via
# comm
# ipykernel
Expand All @@ -334,20 +328,20 @@ traitlets==5.13.0
# jupyter-console
# jupyter-core
# matplotlib-inline
trio==0.23.1 ; python_version > "3.6"
trio==0.24.0 ; python_version > "3.6"
# via
# pyee (pyproject.toml)
# pytest-trio
# trio-typing
trio-typing==0.9.0 ; python_version > "3.6"
trio-typing==0.10.0 ; python_version > "3.6"
# via pyee (pyproject.toml)
trove-classifiers==2023.11.22
trove-classifiers==2024.2.22
# via validate-pyproject
twine==4.0.2
twine==5.0.0
# via pyee (pyproject.toml)
twisted==23.10.0
# via pyee (pyproject.toml)
typing-extensions==4.8.0
typing-extensions==4.9.0
# via
# pyee (pyproject.toml)
# trio-typing
Expand All @@ -356,19 +350,19 @@ urllib3==2.2.2
# via
# requests
# twine
validate-pyproject[all]==0.15
validate-pyproject[all]==0.16
# via pyee (pyproject.toml)
virtualenv==20.24.7
virtualenv==20.25.1
# via tox
watchdog==3.0.0
watchdog==4.0.0
# via mkdocs
wcmatch==8.5
wcmatch==8.5.1
# via mkdocs-include-markdown-plugin
wcwidth==0.2.12
wcwidth==0.2.13
# via prompt-toolkit
zipp==3.19.1
# via importlib-metadata
zope-interface==6.1
zope-interface==6.2
# via twisted

# The following packages are considered to be unsafe in a requirements file:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_uplift.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def shared_uplifted_handler():
call("shared event on uplifted emitter"),
call("uplifted event on uplifted emitter"),
call("base event on base emitter"),
call("shared event on base emitter")
call("shared event on base emitter"),
# No listener for uplifted event on uplifted
]
)
Expand Down

0 comments on commit 8e24809

Please sign in to comment.