Skip to content

Commit 28e030a

Browse files
authored
Merge pull request #240 from AliSayyah/python3.13
1- Added python 3.13 support 2- Dropped python 3.8 3- Dropped Django 3
2 parents 7f44ecd + 8460955 commit 28e030a

File tree

7 files changed

+965
-960
lines changed

7 files changed

+965
-960
lines changed

.github/workflows/dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
# The type of runner that the job will run on
2121
strategy:
2222
matrix:
23-
python-versions: [ 3.8, 3.9, '3.10', '3.11', 3.12]
23+
python-versions: [ 3.9, '3.10', '3.11', '3.12', '3.13']
2424
runs-on: ubuntu-latest
2525

2626
# Steps represent a sequence of tasks that will be executed as part of the job

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
strategy:
2323
matrix:
24-
python-versions: [3.8]
24+
python-versions: [3.9]
2525

2626
# Steps represent a sequence of tasks that will be executed as part of the job
2727
steps:

.pre-commit-config.yaml

Lines changed: 7 additions & 7 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
21-
rev: 24.2.0
21+
rev: 25.1.0
2222
hooks:
2323
- id: black
24-
language_version: python3.8
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: 934 additions & 930 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ classifiers = [
1212
'Intended Audience :: Developers',
1313
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
1414
'Natural Language :: English',
15-
'Programming Language :: Python :: 3.8',
1615
'Programming Language :: Python :: 3.9',
1716
'Programming Language :: Python :: 3.10',
1817
'Programming Language :: Python :: 3.11',
1918
'Programming Language :: Python :: 3.12',
20-
'Framework :: Django :: 3.2',
19+
'Programming Language :: Python :: 3.13',
2120
'Framework :: Django :: 4.0',
2221
'Framework :: Django :: 5.0',
2322
]
@@ -30,26 +29,26 @@ packages = [
3029
urlconfchecks = "django_urlconfchecks.cli:app"
3130

3231
[tool.poetry.dependencies]
33-
python = ">=3.8.0,<4"
34-
Django = ">=3.2"
35-
typer = { extras = ["all"], version = ">=0.4.1,<1.0.0" }
32+
python = ">=3.9.0,<4"
33+
Django = ">=4.2"
34+
typer = { extras = ["all"], version = ">=0.9.0,<1.0.0" }
3635

37-
black = { version = ">=22.3.0", optional = true }
38-
isort = { version = "^5.8.0", optional = true }
39-
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 }
4039
flake8-docstrings = { version = "^1.6.0", optional = true }
41-
mypy = { version = "^1.8.0", optional = true }
40+
mypy = { version = "^1.15.0", optional = true }
4241
pytest = { version = "^8.0.2", optional = true }
43-
pytest-cov = { version = ">=3,<5", optional = true }
42+
pytest-cov = { version = "^6.1.1", optional = true }
4443
pytest-django = { version = "^4.5.2", optional = true }
4544
tox = { version = "^4.13.0", optional = true }
4645
virtualenv = { version = "^20.2.2", optional = true }
4746
mkdocs = { version = "^1.5.3", optional = true }
48-
mkdocs-include-markdown-plugin = { version = "^6.0.4", optional = true }
47+
mkdocs-include-markdown-plugin = { version = "^7.1.5", optional = true }
4948
mkdocs-material = { version = "^9.5.11", optional = true }
50-
twine = { version = "^5.0.0", optional = true }
51-
mkdocs-autorefs = { version = "^0.5.0", optional = true }
52-
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 }
5352
toml = { version = "^0.10.2", optional = true }
5453
bump2version = { version = "^1.0.1", optional = true }
5554
Markdown = { version = "^3.3.4", optional = true }

setup.cfg

Lines changed: 8 additions & 6 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
@@ -42,22 +43,23 @@ exclude_lines =
4243

4344
[tox:tox]
4445
isolated_build = true
45-
env_list = py{38, 39, 310}-django{32, 40},py310-django50, py{311, 312}-django{40, 50}, format, lint, build
46+
env_list = py{39, 310, 311, 312}-django42, py{310, 311, 312}-django{50, 51, 52}, py313-django{51, 52}, format, lint, build
4647

4748
[gh-actions]
4849
python =
50+
3.13: py313
4951
3.12: py312
5052
3.11: py311
5153
3.10: py310
52-
3.9: py39
53-
3.8: py38, format, lint, build
54+
3.9: py39, format, lint, build
5455

5556
[testenv]
5657
allowlist_externals = pytest
5758
deps =
58-
django32: django==3.2.15
59-
django40: django==4.1.1
60-
django50: django==5.0.2
59+
django42: django==4.2.8
60+
django50: django==5.0.0
61+
django51: django==5.1.3
62+
django52: django==5.2.0
6163
extras =
6264
test
6365
passenv = *

0 commit comments

Comments
 (0)