Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -11,17 +11,17 @@ repos:
- id: check-added-large-files

- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: 7.0.0
hooks:
- id: isort
name: isort (python)

- repo: https://github.com/psf/black
rev: 22.10.0
rev: 25.9.0
hooks:
- id: black
# It is recommended to specify the latest version of Python
# supported by your project here, or alternatively use
# pre-commit's default_language_version, see
# https://pre-commit.com/#top_level-default_language_version
language_version: python3.9
language_version: python3.11
6 changes: 5 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
# Required
version: 2

build:
os: ubuntu-lts-latest
tools:
python: "3.13"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py
Expand All @@ -19,6 +24,5 @@ sphinx:

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.7
install:
- requirements: docs/requirements.txt
2 changes: 1 addition & 1 deletion docs/dev/code_of_conduct.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.

4. Permanent Ban
-------------
----------------

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
Expand Down
26 changes: 1 addition & 25 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,25 +1 @@
alabaster==0.7.12
Babel==2.10.3
certifi==2022.9.24
chardet==5.0.0
colorama==0.4.3
docutils==0.19
idna==3.4
imagesize>=1.3
Jinja2==3.1.2
MarkupSafe==2.1.1
packaging>=21.0
Pygments==2.13.0
pyparsing==3.0.9
pytz==2020.1
requests==2.28.1
six==1.16.0
snowballstemmer==2.2.0
Sphinx==5.2.2
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp>=2.0.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml>=1.1.5
urllib3==1.26.5
Sphinx==8.2.3
5 changes: 3 additions & 2 deletions polling2.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def poll(
(timeout is not None or max_tries is not None) and poll_forever
), "You cannot specify both the option to poll_forever and max_tries/timeout."

kwargs = kwargs or dict()
kwargs = kwargs or {}
values = collect_values or Queue()

timeout = time.time() + timeout if timeout else None
Expand Down Expand Up @@ -252,7 +252,8 @@ def poll_decorator(
):
"""Use poll() as a decorator.

:return: decorator using poll()"""
:return: decorator using poll()
"""

def decorator(target):
@wraps(target)
Expand Down
10 changes: 7 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@
py_modules=["polling2"],
tests_require=TEST_REQUIREMENTS,
test_suite="tests",
setup_requires=[
"pytest-runner",
],
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
Expand Down
2 changes: 1 addition & 1 deletion test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
mock
mock; python_version < "3.0"
pytest
Loading