Skip to content

Commit 8460955

Browse files
committed
Update dependencies in pre-commit configuration and poetry.lock
- Bump versions for several dependencies in `.pre-commit-config.yaml` and `poetry.lock`, including `flake8` to 7.2.0, `isort` to 6.0.1, and `mypy` to 1.15.0. - Add new dependency `id` version 1.5.0 in `poetry.lock`. - Update Python version requirements for various packages to >=3.9. - Adjust `setup.cfg` to set minimum Python version to 3.9.0.
1 parent 5c89a8a commit 8460955

File tree

5 files changed

+85
-73
lines changed

5 files changed

+85
-73
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,30 @@ repos:
55
- id: forbid-crlf
66
- id: remove-crlf
77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v4.5.0
8+
rev: v5.0.0
99
hooks:
1010
- id: trailing-whitespace
1111
- id: end-of-file-fixer
1212
- id: check-merge-conflict
1313
- id: check-yaml
1414
args: [ --unsafe ]
1515
- repo: https://github.com/PyCQA/isort
16-
rev: 5.13.2
16+
rev: 6.0.1
1717
hooks:
1818
- id: isort
1919
args: [ "--filter-files" ]
2020
- repo: https://github.com/psf/black
2121
rev: 25.1.0
2222
hooks:
2323
- id: black
24-
language_version: python3.9
24+
language_version: python3.10
2525
- repo: https://github.com/pycqa/flake8
26-
rev: 5.0.4
26+
rev: 7.2.0
2727
hooks:
2828
- id: flake8
29-
additional_dependencies: [ flake8-typing-imports==1.10.0 ]
29+
additional_dependencies: [ flake8-typing-imports==1.12.0 ]
3030
- repo: https://github.com/pre-commit/mirrors-mypy
31-
rev: v1.8.0
31+
rev: v1.15.0
3232
hooks:
3333
- id: mypy
3434
exclude: tests/

django_urlconfchecks/check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def _name_type(type_hint):
274274
# Things like `Optional[int]`:
275275
# - repr() does a better job than `__name__`
276276
# - `__name__` is not available in some Python versions.
277-
return type_hint.__name__ if (hasattr(type_hint, "__name__") and type(type_hint) == type) else repr(type_hint)
277+
return type_hint.__name__ if (hasattr(type_hint, "__name__") and isinstance(type_hint, type)) else repr(type_hint)
278278

279279

280280
CONVERTER_TYPES = {

poetry.lock

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

pyproject.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,22 @@ python = ">=3.9.0,<4"
3333
Django = ">=4.2"
3434
typer = { extras = ["all"], version = ">=0.9.0,<1.0.0" }
3535

36-
black = { version = ">=25.1.0", optional = true }
37-
isort = { version = "^5.8.0", optional = true }
38-
flake8 = { version = ">=4.0.1,<6.0.0", optional = true }
36+
black = { version = "^25.1.0", optional = true }
37+
isort = { version = "^6.0", optional = true }
38+
flake8 = { version = "^7.2.0", optional = true }
3939
flake8-docstrings = { version = "^1.6.0", optional = true }
40-
mypy = { version = "^1.8.0", optional = true }
40+
mypy = { version = "^1.15.0", optional = true }
4141
pytest = { version = "^8.0.2", optional = true }
42-
pytest-cov = { version = ">=3,<5", optional = true }
42+
pytest-cov = { version = "^6.1.1", optional = true }
4343
pytest-django = { version = "^4.5.2", optional = true }
4444
tox = { version = "^4.13.0", optional = true }
4545
virtualenv = { version = "^20.2.2", optional = true }
4646
mkdocs = { version = "^1.5.3", optional = true }
47-
mkdocs-include-markdown-plugin = { version = "^6.0.4", optional = true }
47+
mkdocs-include-markdown-plugin = { version = "^7.1.5", optional = true }
4848
mkdocs-material = { version = "^9.5.11", optional = true }
49-
twine = { version = "^5.0.0", optional = true }
50-
mkdocs-autorefs = { version = "^0.5.0", optional = true }
51-
pre-commit = { version = "^3.5.0", optional = true }
49+
twine = { version = "^6.1.0", optional = true }
50+
mkdocs-autorefs = { version = "^1.4.0", optional = true }
51+
pre-commit = { version = "^4.2.0", optional = true }
5252
toml = { version = "^0.10.2", optional = true }
5353
bump2version = { version = "^1.0.1", optional = true }
5454
Markdown = { version = "^3.3.4", optional = true }

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[flake8]
2+
min_python_version = 3.9.0
23
max-line-length = 120
34
max-complexity = 18
45
ignore = E203, E266, W503, D107, C901

0 commit comments

Comments
 (0)