Skip to content

Commit

Permalink
Fixed lint issues (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nusnus authored Oct 18, 2024
1 parent 9f732b5 commit c2e2a05
Show file tree
Hide file tree
Showing 9 changed files with 58 additions and 53 deletions.
12 changes: 7 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ repos:
additional_dependencies:
- tomli

- repo: https://github.com/PyCQA/docformatter
rev: v1.7.5
hooks:
- id: docformatter
args: [--in-place]
# Disabled until fixed support for Pre-commit v4.x.x
# - repo: https://github.com/PyCQA/docformatter
# rev: v1.7.5
# hooks:
# - id: docformatter
# args: [--in-place]
# language: python

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ meeting or private correspondence.
The Code of Conduct is heavily based on the `Ubuntu Code of Conduct`_, and
the `Pylons Code of Conduct`_.

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

Be considerate
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ the new BSD license). The license is an OSI approved Open Source
license and is GPL-compatible(1).

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


License
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ please refer to the `official documentation`_.

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

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

Donations
=========
Expand Down
77 changes: 40 additions & 37 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,44 +1,47 @@
from sphinx_celery import conf

globals().update(
conf.build_config(
"pytest_celery",
__file__,
project="pytest_celery",
version_dev="1.1",
version_stable="1.0",
canonical_url="https://pytest-celery.readthedocs.io/",
webdomain="pytest-celery.readthedocs.io",
github_project="celery/pytest-celery",
author="Tomer Nosrati",
author_name="Tomer Nosrati",
copyright="2024",
publisher="Celery Project",
html_logo="images/celery_512.png",
html_favicon="images/favicon.ico",
html_prepend_sidebars=["sidebardonations.html"],
extra_extensions=[
"sphinx_click",
"sphinx.ext.napoleon",
"celery.contrib.sphinx",
"sphinxcontrib.mermaid",
],
apicheck_ignore_modules=[
r"celery.contrib.*",
],
linkcheck_ignore=[
r"^http://localhost",
r"^http://0.0.0.0",
r"https://github\.com/Jc2k/pytest-docker-tools\?tab=readme-ov-file#images",
r"https://github\.com/Jc2k/pytest-docker-tools\?tab=readme-ov-file#containers",
r"https://github\.com/Jc2k/pytest-docker-tools\?tab=readme-ov-file#fixture-wrappers",
r"https://github\.com/celery/celery/blob/main/requirements/test\.txt#L2",
r"https://github\.com/celery/celery/blob/main/tox\.ini#L30",
],
autodoc_mock_imports=[],
)
config = conf.build_config(
"pytest_celery",
__file__,
project="pytest_celery",
version_dev="1.1",
version_stable="1.0",
canonical_url="https://pytest-celery.readthedocs.io/",
webdomain="pytest-celery.readthedocs.io",
github_project="celery/pytest-celery",
author="Tomer Nosrati",
author_name="Tomer Nosrati",
copyright="2024",
publisher="Celery Project",
html_logo="images/celery_512.png",
html_favicon="images/favicon.ico",
html_prepend_sidebars=["sidebardonations.html"],
extra_extensions=[
"sphinx_click",
"sphinx.ext.napoleon",
"celery.contrib.sphinx",
"sphinxcontrib.mermaid",
],
apicheck_ignore_modules=[
r"celery.contrib.*",
],
linkcheck_ignore=[
r"^http://localhost",
r"^http://0.0.0.0",
r"https://github\.com/Jc2k/pytest-docker-tools\?tab=readme-ov-file#images",
r"https://github\.com/Jc2k/pytest-docker-tools\?tab=readme-ov-file#containers",
r"https://github\.com/Jc2k/pytest-docker-tools\?tab=readme-ov-file#fixture-wrappers",
r"https://github\.com/celery/celery/blob/main/requirements/test\.txt#L2",
r"https://github\.com/celery/celery/blob/main/tox\.ini#L30",
r"https://www\.opensource\.org/license/BSD-3-Clause",
],
autodoc_mock_imports=[],
)

del config["intersphinx_mapping"]["eventlet"]

globals().update(config)

settings = {}
ignored_settings = {}

Expand Down
2 changes: 1 addition & 1 deletion docs/copyright.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ compatible license to this one.
While the *pytest-celery* documentation is offered under the
Creative Commons *Attribution-ShareAlike 4.0 International* license,
the pytest-celery *software* is offered under the
`BSD License (3 Clause) <http://www.opensource.org/licenses/BSD-3-Clause>`_.
`BSD License (3 Clause) <https://www.opensource.org/license/BSD-3-Clause>`_.
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ please refer to the `official documentation`_.

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

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

Donations
=========
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ flake8 = [
]
pre-commit = [
{ version = "^2.21.0", python = "<3.8.0" },
{ version = "^3.1.0", python = ">=3.8.0,<4.0" },
{ version = ">=3.6.0", python = ">=3.9.0,<4.0" },
{ version = "^3.1.0", python = ">=3.8.0,<3.9.0" },
{ version = "^4.0.0", python = ">=3.9.0,<4.0" },
]
mypy = ">=1.11.2"
types-redis = ">=4.6.0.20240218"
Expand Down

0 comments on commit c2e2a05

Please sign in to comment.