@@ -15,47 +15,51 @@ license = {text = "GPL-3.0-or-later"}
1515classifiers = [
1616 " Programming Language :: Python :: 3" ,
1717 " Programming Language :: Python :: 3.11" ,
18+ " Programming Language :: Python :: 3.12" ,
19+ " Programming Language :: Python :: 3.13" ,
20+ " Programming Language :: Python :: 3.14" ,
1821 " License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)" ,
1922]
2023dependencies = [
21- " requests==2.31.0" ,
24+ " requests==2.32.5" ,
25+ " types-requests==2.32.4.20260107" ,
2226 " PyYAML==6.0.1" ,
23- " cli-ui==0.17.2 " ,
27+ " cli-ui==0.19.0 " ,
2428 " humanfriendly==10.0" ,
25- " progressbar2==4.4.2 " ,
26- " docker-export==1.1 .0" ,
27- " typeguard==4.1.5 " ,
28- " offspot-config==2.2.0 " ,
29+ " progressbar2==4.5.0 " ,
30+ " docker-export==1.2 .0" ,
31+ " typeguard==4.5.1 " ,
32+ " offspot-config==2.9.2 " ,
2933 # "offspot-config@git+https://github.com/offspot/offspot-config#egg=main",
3034 " natsort==8.4.0" ,
31- " aria2p==0.12.0 " ,
35+ " aria2p==0.12.1 " ,
3236]
3337dynamic = [" version" ]
3438
3539[project .optional-dependencies ]
3640scripts = [
37- " invoke==2.2.0" ,
41+ " invoke==2.2.1" ,
42+ " types-invoke==2.0.0.10" ,
3843]
3944lint = [
40- " black==24.2.0" ,
41- " ruff==0.2.2" ,
45+ " ruff==0.15.5" ,
4246]
4347check = [
44- " pyright==1.1.358 " ,
48+ " pyright==1.1.408 " ,
4549]
4650test = [
47- " pytest==8 .0.2" ,
48- " pytest-cov==4.1 .0" ,
49- " coverage==7.4.3 " ,
51+ " pytest==9 .0.2" ,
52+ " pytest-cov==7.0 .0" ,
53+ " coverage==7.13.4 " ,
5054]
5155binary = [
5256 " ordered-set==4.1.0" ,
5357 " zstandard==0.25.0" ,
54- " nuitka==2.8.9 " ,
55- " requests==2.31.0 " ,
58+ " nuitka==4.0.3 " ,
59+ " requests==2.32.5 " ,
5660]
5761dev = [
58- " pre-commit==3.6.0 " ,
62+ " pre-commit==4.5.1 " ,
5963 " image-creator[scripts]" ,
6064 " image-creator[lint]" ,
6165 " image-creator[test]" ,
@@ -81,7 +85,7 @@ exclude = [
8185]
8286
8387[[tool .hatch .envs .default .matrix ]]
84- python = [" 3.11" ]
88+ python = [" 3.11" , " 3.12 " , " 3.13 " , " 3.14 " ]
8589
8690[tool .hatch .envs .default ]
8791features = [" dev" ]
@@ -90,7 +94,7 @@ features = ["dev"]
9094features = [" scripts" , " test" ]
9195
9296[[tool .hatch .envs .test .matrix ]]
93- python = [" 3.11" ]
97+ python = [" 3.11" , " 3.12 " , " 3.13 " , " 3.14 " ]
9498
9599[tool .hatch .envs .test .scripts ]
96100run = " inv test --args '{args}'"
@@ -115,6 +119,9 @@ fixall = "inv fixall --args '{args}'"
115119[tool .hatch .envs .check ]
116120features = [" scripts" , " check" ]
117121
122+ [[tool .hatch .envs .check .matrix ]]
123+ python = [" 3.11" , " 3.12" , " 3.13" , " 3.14" ]
124+
118125[tool .hatch .envs .check .scripts ]
119126pyright = " inv check-pyright --args '{args}'"
120127all = " inv checkall --args '{args}'"
@@ -123,22 +130,21 @@ all = "inv checkall --args '{args}'"
123130features = [" scripts" , " binary" ]
124131
125132[[tool .hatch .envs .binary .matrix ]]
126- python = [" 3.11 " ]
133+ python = [" 3.13 " ]
127134
128135[tool .hatch .envs .binary .scripts ]
129136build = " inv binary --filename '{args}'"
130137download-aria2 = " inv download-aria2c"
131138
132- [tool .black ]
133- line-length = 88
134- target-version = [' py311' ]
135-
136139[tool .ruff ]
137- target-version = " py311"
138140line-length = 88
139141src = [" src" ]
140142
143+ [tool .ruff .format ]
144+ preview = true
145+
141146[tool .ruff .lint ]
147+ preview = true
142148select = [
143149 " A" , # flake8-builtins
144150 # "ANN", # flake8-annotations
@@ -210,7 +216,9 @@ ignore = [
210216 # Ignore complexity
211217 " C901" , " PLR0911" , " PLR0912" , " PLR0913" , " PLR0915" ,
212218 # naive UTC timezones
213- " DTZ003"
219+ " DTZ003" ,
220+ # allow method that dont use self
221+ " PLR6301" ,
214222]
215223unfixable = [
216224 # Don't touch unused imports
@@ -220,10 +228,6 @@ unfixable = [
220228[tool .ruff .lint .isort ]
221229known-first-party = [" image_creator" ]
222230
223- [tool .ruff .lint .flake8-bugbear ]
224- # add exceptions to B008 for fastapi.
225- extend-immutable-calls = [" fastapi.Depends" , " fastapi.Query" ]
226-
227231[tool .ruff .lint .flake8-tidy-imports ]
228232ban-relative-imports = " all"
229233
0 commit comments