@@ -6,30 +6,22 @@ build-backend = 'hatchling.build'
6
6
name = ' inject'
7
7
dynamic = [' version' ]
8
8
description = ' Python dependency injection framework.'
9
- license = ' Apache-2.0'
9
+ license = ' Apache-2.0'
10
10
readme = ' README.md'
11
- authors = [
12
- {
name =
' Ivan Korobkov' ,
email =
' [email protected] ' },
13
- ]
14
- maintainers = [
15
- {
name =
' Ivan Korobkov' ,
email =
' [email protected] ' },
16
- ]
11
+ authors = [{
name =
' Ivan Korobkov' ,
email =
' [email protected] ' }]
12
+ maintainers = [{
name =
' Ivan Korobkov' ,
email =
' [email protected] ' }]
17
13
classifiers = [
18
14
' Development Status :: 5 - Production/Stable' ,
19
15
' Intended Audience :: Developers' ,
20
16
' License :: OSI Approved :: Apache Software License' ,
21
17
' Operating System :: OS Independent' ,
22
18
' Programming Language :: Python' ,
23
- ' Programming Language :: Python :: 3.6' ,
24
- ' Programming Language :: Python :: 3.7' ,
25
- ' Programming Language :: Python :: 3.8' ,
26
19
' Programming Language :: Python :: 3.9' ,
27
20
' Programming Language :: Python :: 3.10' ,
28
21
' Programming Language :: Python :: 3.11' ,
29
22
' Topic :: Software Development :: Libraries :: Python Modules' ,
30
23
]
31
- dependencies = [
32
- ]
24
+ dependencies = []
33
25
34
26
[project .scripts ]
35
27
@@ -63,12 +55,7 @@ exclude = '''
63
55
version-file = ' src/inject/_version.py'
64
56
65
57
[tool .hatch .build .targets .wheel ]
66
- packages = [
67
- ' src/inject' ,
68
- ]
69
-
70
- [tool .hatch .build .targets .wheel .force-include ]
71
- 'typeshed/pyi/inject' = ' typeshed/pyi/inject'
58
+ packages = [' src/inject' ]
72
59
73
60
[tool .hatch .build .targets .wheel .shared-data ]
74
61
@@ -91,7 +78,6 @@ disallow_untyped_calls = true
91
78
disallow_untyped_decorators = true
92
79
disallow_untyped_defs = true
93
80
ignore_missing_imports = true
94
- mypy_path = [' typeshed/pyi' ]
95
81
no_implicit_optional = true
96
82
python_version = ' 3.11'
97
83
warn_redundant_casts = true
@@ -104,25 +90,17 @@ defineConstant = { DEBUG = true }
104
90
exclude = []
105
91
executionEnvironments = []
106
92
ignore = []
107
- include = [
108
- ' src/inject' ,
109
- ' test' ,
110
- ]
93
+ include = [' src/inject' , ' test' ]
111
94
pythonPlatform = ' Linux'
112
95
pythonVersion = ' 3.11'
113
96
reportMissingImports = true
114
97
reportMissingTypeStubs = false
115
- stubPath = ' typeshed/import'
116
98
117
99
[tool .pytest .ini_options ]
118
100
addopts = ' -rfEX --strict-markers --tb=long'
119
101
minversion = ' 7.2'
120
- python_files = [
121
- ' test_*.py' ,
122
- ]
123
- testpaths = [
124
- ' ./test' ,
125
- ]
102
+ python_files = [' test_*.py' ]
103
+ testpaths = [' ./test' ]
126
104
127
105
[tool .ruff ]
128
106
ignore = [
@@ -131,12 +109,18 @@ ignore = [
131
109
# Allow boolean positional values in function calls, like `dict.get(... True)`
132
110
' FBT003' ,
133
111
# Ignore checks for possible passwords
134
- ' S105' , ' S106' , ' S107' ,
112
+ ' S105' ,
113
+ ' S106' ,
114
+ ' S107' ,
135
115
# Ignore complexity
136
- ' C901' , ' PLR0911' , ' PLR0912' , ' PLR0913' , ' PLR0915' ,
116
+ ' C901' ,
117
+ ' PLR0911' ,
118
+ ' PLR0912' ,
119
+ ' PLR0913' ,
120
+ ' PLR0915' ,
137
121
' PLC1901' , # empty string comparisons
138
122
' PLW2901' , # `for` loop variable overwritten
139
- ' SIM114' , # Combine `if` branches using logical `or` operator
123
+ ' SIM114' , # Combine `if` branches using logical `or` operator
140
124
]
141
125
line-length = 120
142
126
select = [
@@ -179,9 +163,7 @@ inline-quotes = 'single'
179
163
ban-relative-imports = ' all'
180
164
181
165
[tool .ruff .isort ]
182
- known-first-party = [
183
- ' inject' ,
184
- ]
166
+ known-first-party = [' inject' ]
185
167
186
168
[tool .ruff .per-file-ignores ]
187
169
# Tests can use magic values, assertions, and relative imports
0 commit comments