@@ -8,9 +8,9 @@ requires = [
88name = " feincms3-downloads"
99description = " Downloads plugin for feincms3"
1010readme = " README.rst"
11- license = {text = " MIT" }
11+ license = { text = " MIT" }
1212authors = [
13- {
name =
" Matthias Kestenholz" ,
email =
" [email protected] " },
13+ {
name =
" Matthias Kestenholz" ,
email =
" [email protected] " },
1414]
1515requires-python = " >=3.8"
1616classifiers = [
@@ -27,6 +27,8 @@ classifiers = [
2727 " Programming Language :: Python :: 3.9" ,
2828 " Programming Language :: Python :: 3.10" ,
2929 " Programming Language :: Python :: 3.11" ,
30+ " Programming Language :: Python :: 3.12" ,
31+ " Programming Language :: Python :: 3.13" ,
3032 " Topic :: Internet :: WWW/HTTP :: Dynamic Content" ,
3133 " Topic :: Software Development" ,
3234 " Topic :: Software Development :: Libraries :: Application Frameworks" ,
@@ -35,80 +37,77 @@ dynamic = [
3537 " version" ,
3638]
3739dependencies = [
38- " Django >=3.2" ,
40+ " django >=3.2" ,
3941 " feincms3>=4" ,
40- " Pillow " ,
42+ " pillow " ,
4143]
42- [project .optional-dependencies ]
43- tests = [
44+ optional-dependencies.tests = [
4445 " coverage" ,
4546]
46- [project .urls ]
47- Homepage = " https://github.com/matthiask/feincms3-downloads/"
47+ urls.Homepage = " https://github.com/matthiask/feincms3-downloads/"
4848
4949[tool .hatch .version ]
5050path = " feincms3_downloads/__init__.py"
5151
5252[tool .ruff ]
53- extend-select = [
54- # pyflakes, pycodestyle
55- " F" , " E" , " W" ,
56- # mmcabe
57- " C90" ,
58- # isort
59- " I" ,
60- # pep8-naming
61- " N" ,
62- # pyupgrade
63- " UP" ,
64- # flake8-2020
65- " YTT" ,
66- # flake8-boolean-trap
67- " FBT" ,
68- # flake8-bugbear
69- " B" ,
53+ target-version = " py38"
54+
55+ fix = true
56+ show-fixes = true
57+ lint.extend-select = [
7058 # flake8-builtins
7159 " A" ,
60+ # flake8-bugbear
61+ " B" ,
7262 # flake8-comprehensions
7363 " C4" ,
64+ # mmcabe
65+ " C90" ,
7466 # flake8-django
7567 " DJ" ,
68+ " E" ,
69+ # pyflakes, pycodestyle
70+ " F" ,
71+ # flake8-boolean-trap
72+ " FBT" ,
7673 # flake8-logging-format
7774 " G" ,
78- # flake8-pie
79- " PIE" ,
80- # flake8-simplify
81- " SIM" ,
75+ # isort
76+ " I" ,
8277 # flake8-gettext
8378 " INT" ,
79+ # pep8-naming
80+ " N" ,
8481 # pygrep-hooks
8582 " PGH" ,
83+ # flake8-pie
84+ " PIE" ,
85+ " PLC" ,
8686 # pylint
87- " PL" ,
87+ " PLE" ,
88+ " PLW" ,
8889 # unused noqa
8990 " RUF100" ,
91+ # flake8-simplify
92+ " SIM" ,
93+ # pyupgrade
94+ " UP" ,
95+ " W" ,
96+ # flake8-2020
97+ " YTT" ,
9098]
91- extend-ignore = [
99+ lint. extend-ignore = [
92100 # Allow zip() without strict=
93101 " B905" ,
94102 # No line length errors
95103 " E501" ,
96104]
97- fix = true
98- show-fixes = true
99- target-version = " py38"
100-
101- [tool .ruff .isort ]
102- combine-as-imports = true
103- lines-after-imports = 2
104-
105- [tool .ruff .mccabe ]
106- max-complexity = 15
107-
108- [tool .ruff .per-file-ignores ]
109- "*/migrat*/*" = [
105+ lint.per-file-ignores."*/migrat*/*" = [
110106 # Allow using PascalCase model names in migrations
111107 " N806" ,
112108 # Ignore the fact that migration files are invalid module names
113109 " N999" ,
114110]
111+ lint.isort.combine-as-imports = true
112+ lint.isort.lines-after-imports = 2
113+ lint.mccabe.max-complexity = 15
0 commit comments