1- [tool . poetry ]
1+ [project ]
22name = " bunkrr-uploader"
3- version = " 0.1.0"
3+ authors = [
4+ {name = " alexmi256" },
5+ {name = " NTFSvolume" }
6+ ]
7+ dependencies = [
8+ " aiofiles>=24.1.0,<25" ,
9+ " aiohttp>=3.11.10,<4" ,
10+ " pydantic-settings>=2.7.0,<3" ,
11+ " pydantic>=2.10.4,<3" ,
12+ " rich>=13.9.4,<14" ,
13+ " tqdm>=4.67.1,<5" ,
14+ " yarl>=1.18.3,<2"
15+ ]
416description = " Async Bunkrr uploader"
5- authors = [" NTFSvolume" , " alexmi256" ]
617license = " MIT"
718readme = " README.md"
19+ requires-python = " >=3.11,<3.13"
20+ version = " 0.1.0"
821
9- [build-system ]
10- requires = [" poetry-core" ]
11- build-backend = " poetry.core.masonry.api"
12-
13- [tool .poetry .dependencies ]
14- python = " >=3.11,<3.13"
15- aiofiles = " ^24.1.0"
16- aiohttp = " ^3.11.10"
17- tqdm = " ^4.67.1 "
18- rich = " ^13.9.4"
19- yarl = " ^1.18.3"
20- pydantic = " ^2.10.4"
21- pydantic-settings = " ^2.7.0"
22-
23- [tool .poetry .group .dev .dependencies ]
24- pre-commit = " ^4.0.1"
25- ruff = " ^0.8.0"
26-
27- [tool .poetry .scripts ]
22+ [project .scripts ]
2823bunkrr-uploader = " bunkrr_uploader.main:main"
2924
3025[tool .ruff ]
@@ -33,25 +28,60 @@ target-version = "py311"
3328
3429[tool .ruff .lint ]
3530select = [
36- " E" , # pycodestyle errors
37- " W" , # pycodestyle warnings
38- " F" , # pyflakes
39- " I" , # isort
40- " B" , # flake8-bugbear
41- " C4" , # flake8-comprehensions
42- " UP" , # pyupgrade
43- " N" , # PEP8 naming conventions
44- " TCH" , # flake8-type-checking
45- " COM8" , # flake8-commas linter
31+ " ASYNC" , # async calls that do not await anything or use blocking methods
32+ " B" , # flake8-bugbear
33+ " C4" , # flake8-comprehensions
34+ " COM8" , # flake8-commas linter
35+ " E" , # pycodestyle errors
36+ " F" , # pyflakes
37+ " FA102" , # future annotations
38+ " I" , # isort
39+ " N" , # PEP8 naming conventions
40+ " PTH" , # use pathlib instead of os
41+ " Q" , # flake8-quotes
4642 " RUF" , # RUF specific fixes
47- " Q" , # flake8-quotes
43+ " T20" , # flake8-print
44+ " TC" , # flake8-type-checking
45+ " TID" , # flake8-tidy-imports
46+ " UP" , # pyupgrade
47+ " W" # pycodestyle warnings
48+ ]
49+ extend-safe-fixes = [
50+ " TC" # move import from and to TYPE_CHECKING blocks
4851]
49-
5052ignore = [
51- " N806" , # Uppercase variables in functions
52- " E501" , # Suppress line-too-long, let formatter decide
53- " COM812" , # missing-trailing-comma
53+ " COM812" , # missing-trailing-comma
54+ " E501" , # suppress line-too-long, let formatter decide
55+ " N806" # uppercase variables in functions
56+ ]
57+ unfixable = [
58+ " ERA" # do not autoremove commented out code
5459]
5560
61+ [tool .ruff .lint .per-file-ignores ]
62+ "**/{tests,docs}/*" = [
63+ " E402" , # imports not at the top of the file.
64+ " T20" # flake8-print
65+ ]
66+ "__init__.py" = [" E402" ] # imports not at the top of the file.
67+
5668[tool .ruff .lint .pydocstyle ]
5769convention = " google"
70+
71+ [tool .tomlsort ]
72+ all = true
73+ ignore_case = true
74+ in_place = true
75+ sort_first = [" name" , " project" , " select" , " tool" ]
76+ spaces_before_inline_comment = 2
77+ spaces_indent_inline_array = 4
78+
79+ [build-system ]
80+ build-backend = " hatchling.build"
81+ requires = [" hatchling" ]
82+
83+ [dependency-groups ]
84+ dev = [
85+ " pre-commit>=4.0.1,<5" ,
86+ " ruff>=0.8.0,<0.9"
87+ ]
0 commit comments