Skip to content

Commit 77560a9

Browse files
committed
Fixed lint issues
1 parent 9f732b5 commit 77560a9

File tree

9 files changed

+58
-53
lines changed

9 files changed

+58
-53
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ repos:
4242
additional_dependencies:
4343
- tomli
4444

45-
- repo: https://github.com/PyCQA/docformatter
46-
rev: v1.7.5
47-
hooks:
48-
- id: docformatter
49-
args: [--in-place]
45+
# Disabled until fixed support for Pre-commit v4.x.x
46+
# - repo: https://github.com/PyCQA/docformatter
47+
# rev: v1.7.5
48+
# hooks:
49+
# - id: docformatter
50+
# args: [--in-place]
51+
# language: python
5052

5153
- repo: https://github.com/pre-commit/pre-commit-hooks
5254
rev: v5.0.0

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ meeting or private correspondence.
3232
The Code of Conduct is heavily based on the `Ubuntu Code of Conduct`_, and
3333
the `Pylons Code of Conduct`_.
3434

35-
.. _`Ubuntu Code of Conduct`: https://www.ubuntu.com/community/conduct
35+
.. _`Ubuntu Code of Conduct`: https://ubuntu.com/community/ethos/code-of-conduct
3636
.. _`Pylons Code of Conduct`: https://pylonsproject.org/community-code-of-conduct.html
3737

3838
Be considerate

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ the new BSD license). The license is an OSI approved Open Source
55
license and is GPL-compatible(1).
66

77
The license text can also be found here:
8-
https://www.opensource.org/licenses/BSD-3-Clause
8+
https://www.opensource.org/license/BSD-3-Clause
99

1010

1111
License

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ please refer to the `official documentation`_.
3030

3131
The pytest-celery plugin is Open Source and licensed under the `BSD License`_.
3232

33-
.. _`BSD License`: http://www.opensource.org/licenses/BSD-3-Clause
33+
.. _`BSD License`: https://www.opensource.org/license/BSD-3-Clause
3434

3535
Donations
3636
=========

docs/conf.py

Lines changed: 40 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,47 @@
11
from sphinx_celery import conf
22

3-
globals().update(
4-
conf.build_config(
5-
"pytest_celery",
6-
__file__,
7-
project="pytest_celery",
8-
version_dev="1.1",
9-
version_stable="1.0",
10-
canonical_url="https://pytest-celery.readthedocs.io/",
11-
webdomain="pytest-celery.readthedocs.io",
12-
github_project="celery/pytest-celery",
13-
author="Tomer Nosrati",
14-
author_name="Tomer Nosrati",
15-
copyright="2024",
16-
publisher="Celery Project",
17-
html_logo="images/celery_512.png",
18-
html_favicon="images/favicon.ico",
19-
html_prepend_sidebars=["sidebardonations.html"],
20-
extra_extensions=[
21-
"sphinx_click",
22-
"sphinx.ext.napoleon",
23-
"celery.contrib.sphinx",
24-
"sphinxcontrib.mermaid",
25-
],
26-
apicheck_ignore_modules=[
27-
r"celery.contrib.*",
28-
],
29-
linkcheck_ignore=[
30-
r"^http://localhost",
31-
r"^http://0.0.0.0",
32-
r"https://github\.com/Jc2k/pytest-docker-tools\?tab=readme-ov-file#images",
33-
r"https://github\.com/Jc2k/pytest-docker-tools\?tab=readme-ov-file#containers",
34-
r"https://github\.com/Jc2k/pytest-docker-tools\?tab=readme-ov-file#fixture-wrappers",
35-
r"https://github\.com/celery/celery/blob/main/requirements/test\.txt#L2",
36-
r"https://github\.com/celery/celery/blob/main/tox\.ini#L30",
37-
],
38-
autodoc_mock_imports=[],
39-
)
3+
config = conf.build_config(
4+
"pytest_celery",
5+
__file__,
6+
project="pytest_celery",
7+
version_dev="1.1",
8+
version_stable="1.0",
9+
canonical_url="https://pytest-celery.readthedocs.io/",
10+
webdomain="pytest-celery.readthedocs.io",
11+
github_project="celery/pytest-celery",
12+
author="Tomer Nosrati",
13+
author_name="Tomer Nosrati",
14+
copyright="2024",
15+
publisher="Celery Project",
16+
html_logo="images/celery_512.png",
17+
html_favicon="images/favicon.ico",
18+
html_prepend_sidebars=["sidebardonations.html"],
19+
extra_extensions=[
20+
"sphinx_click",
21+
"sphinx.ext.napoleon",
22+
"celery.contrib.sphinx",
23+
"sphinxcontrib.mermaid",
24+
],
25+
apicheck_ignore_modules=[
26+
r"celery.contrib.*",
27+
],
28+
linkcheck_ignore=[
29+
r"^http://localhost",
30+
r"^http://0.0.0.0",
31+
r"https://github\.com/Jc2k/pytest-docker-tools\?tab=readme-ov-file#images",
32+
r"https://github\.com/Jc2k/pytest-docker-tools\?tab=readme-ov-file#containers",
33+
r"https://github\.com/Jc2k/pytest-docker-tools\?tab=readme-ov-file#fixture-wrappers",
34+
r"https://github\.com/celery/celery/blob/main/requirements/test\.txt#L2",
35+
r"https://github\.com/celery/celery/blob/main/tox\.ini#L30",
36+
r"https://www\.opensource\.org/license/BSD-3-Clause",
37+
],
38+
autodoc_mock_imports=[],
4039
)
4140

41+
del config["intersphinx_mapping"]["eventlet"]
42+
43+
globals().update(config)
44+
4245
settings = {}
4346
ignored_settings = {}
4447

docs/copyright.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ compatible license to this one.
2626
While the *pytest-celery* documentation is offered under the
2727
Creative Commons *Attribution-ShareAlike 4.0 International* license,
2828
the pytest-celery *software* is offered under the
29-
`BSD License (3 Clause) <http://www.opensource.org/licenses/BSD-3-Clause>`_.
29+
`BSD License (3 Clause) <https://www.opensource.org/license/BSD-3-Clause>`_.

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ please refer to the `official documentation`_.
2020

2121
The pytest-celery plugin is Open Source and licensed under the `BSD License`_.
2222

23-
.. _`BSD License`: http://www.opensource.org/licenses/BSD-3-Clause
23+
.. _`BSD License`: https://www.opensource.org/license/BSD-3-Clause
2424

2525
Donations
2626
=========

poetry.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ flake8 = [
115115
]
116116
pre-commit = [
117117
{ version = "^2.21.0", python = "<3.8.0" },
118-
{ version = "^3.1.0", python = ">=3.8.0,<4.0" },
119-
{ version = ">=3.6.0", python = ">=3.9.0,<4.0" },
118+
{ version = "^3.1.0", python = ">=3.8.0,<3.9.0" },
119+
{ version = "^4.0.0", python = ">=3.9.0,<4.0" },
120120
]
121121
mypy = ">=1.11.2"
122122
types-redis = ">=4.6.0.20240218"

0 commit comments

Comments
 (0)