Debian Codegraph @

pyproject.toml

raw
1 [project]
2 name = "aiotankerkoenig"
3 version = "0.0.0"
4 description = "Async Python 3 client for tankerkoenig.de"
5 authors = [{ name = "Jan-Philipp Benecke", email = "[email protected]" }]
6 license = "MIT"
7 readme = "README.md"
8 requires-python = ">=3.11"
9 classifiers = [
10 "Development Status :: 5 - Production/Stable",
11 "Framework :: AsyncIO",
12 "Intended Audience :: Developers",
13 "Natural Language :: English",
14 "Programming Language :: Python :: 3.11",
15 "Programming Language :: Python :: 3.12",
16 "Programming Language :: Python :: 3.13",
17 "Programming Language :: Python :: 3.14",
18 "Programming Language :: Python :: 3",
19 "Topic :: Software Development :: Libraries :: Python Modules",
20 ]
21 dependencies = [
22 "aiohttp>=3.0.0",
23 "yarl>=1.6.0",
24 "mashumaro>=3.11,<4",
25 "orjson>=3.9.0",
26 ]
27
28 [project.urls]
29 Repository = "https://github.com/jpbede/aiotankerkoenig"
30 "Bug Tracker" = "https://github.com/jpbede/aiotankerkoenig/issues"
31 Changelog = "https://github.com/jpbede/aiotankerkoenig/releases"
32
33 [dependency-groups]
34 dev = [
35 "codespell==2.4.2",
36 "covdefaults==2.3.0",
37 "coverage[toml]==7.13.5",
38 "mypy==2.0.0",
39 "pre-commit==4.6.0",
40 "pre-commit-hooks==6.0.0",
41 "pylint==4.0.5",
42 "pytest==9.0.3",
43 "pytest-asyncio==1.3.0",
44 "pytest-cov==7.1.0",
45 "ruff==0.15.12",
46 "safety==3.7.0",
47 "yamllint==1.38.0",
48 "syrupy==5.1.0",
49 "aioresponses==0.7.8",
50 ]
51
52 [tool.coverage.report]
53 show_missing = true
54 fail_under = 50
55
56 [tool.coverage.run]
57 plugins = ["covdefaults"]
58 source = ["aiotankerkoenig"]
59
60 [tool.mypy]
61 # Specify the target platform details in config, so your developers are
62 # free to run mypy on Windows, Linux, or macOS and get consistent
63 # results.
64 platform = "linux"
65 python_version = "3.11"
66
67 # show error messages from unrelated files
68 follow_imports = "normal"
69
70 # suppress errors about unsatisfied imports
71 ignore_missing_imports = true
72
73 # be strict
74 check_untyped_defs = true
75 disallow_any_generics = true
76 disallow_incomplete_defs = true
77 disallow_subclassing_any = true
78 disallow_untyped_calls = true
79 disallow_untyped_decorators = true
80 disallow_untyped_defs = true
81 no_implicit_optional = true
82 strict_optional = true
83 warn_incomplete_stub = true
84 warn_no_return = true
85 warn_redundant_casts = true
86 warn_return_any = true
87 warn_unused_configs = true
88 warn_unused_ignores = true
89
90 [tool.pylint.MASTER]
91 ignore = [
92 "tests",
93 ]
94
95 [tool.pylint.BASIC]
96 good-names = [
97 "_",
98 "ex",
99 "fp",
100 "i",
101 "id",
102 "j",
103 "k",
104 "on",
105 "Run",
106 "T",
107 ]
108
109 [tool.pylint.DESIGN]
110 max-attributes = 8
111
112 [tool.pylint."MESSAGES CONTROL"]
113 disable = [
114 "duplicate-code",
115 "format",
116 "unsubscriptable-object",
117 "too-many-instance-attributes",
118 "too-many-arguments",
119 "too-many-public-methods",
120 "wrong-import-order",
121 ]
122
123 [tool.pylint.SIMILARITIES]
124 ignore-imports = true
125
126 [tool.pylint.FORMAT]
127 max-line-length = 88
128
129 [tool.pytest.ini_options]
130 addopts = "--cov"
131 asyncio_mode = "auto"
132
133 [tool.ruff]
134 target-version = "py311"
135
136 [tool.ruff.lint]
137 ignore = [
138 "ANN101", # Self... explanatory
139 "ANN102", # cls... just as useless
140 "ANN401", # Opinioated warning on disallowing dynamically typed expressions
141 "D203", # Conflicts with other rules
142 "D213", # Conflicts with other rules
143 "D417", # False positives in some occasions
144 "PLR2004", # Just annoying, not really useful
145 "PLR0913", # Too many arguments
146 "TC001",
147 ]
148 select = ["ALL"]
149
150 [tool.ruff.lint.flake8-pytest-style]
151 fixture-parentheses = false
152 mark-parentheses = false
153
154 [tool.ruff.lint.isort]
155 known-first-party = ["aiotankerkoenig"]
156 force-sort-within-sections = true
157 split-on-trailing-comma = false
158 combine-as-imports = true
159
160 [tool.ruff.lint.mccabe]
161 max-complexity = 25
162
163 [build-system]
164 build-backend = "hatchling.build"
165 requires = ["hatchling"]