File tree 5 files changed +150
-107
lines changed
src/concurrent_log_handler
5 files changed +150
-107
lines changed Original file line number Diff line number Diff line change 24
24
pip3 install --upgrade hatch
25
25
- name : Run linting
26
26
run : |
27
- hatch run lint:style
27
+ hatch run lint:all
28
28
29
29
test :
30
30
name : Test Python ${{ matrix.python-version }} on ${{ matrix.os }}
Original file line number Diff line number Diff line change @@ -92,9 +92,14 @@ dependencies = [
92
92
" black>=23.9.1" ,
93
93
" mypy>=1.6.0" ,
94
94
" ruff>=0.1.0" ,
95
+ " portalocker" ,
95
96
]
96
97
97
98
[tool .hatch .envs .lint .scripts ]
99
+ typing = [
100
+ " mypy --version" ,
101
+ " mypy --install-types --non-interactive {args:src/concurrent_log_handler}"
102
+ ]
98
103
style = [
99
104
" ruff {args:.}" ,
100
105
" black --check --diff {args:.}" ,
@@ -104,6 +109,10 @@ fmt = [
104
109
" ruff {args:.}" ,
105
110
" style" ,
106
111
]
112
+ all = [
113
+ " style" ,
114
+ " typing" ,
115
+ ]
107
116
108
117
[tool .ruff ]
109
118
output-format = " grouped"
@@ -186,3 +195,21 @@ testpaths =["tests"]
186
195
omit = [
187
196
" tests/stresstest.py"
188
197
]
198
+
199
+ [tool .mypy ]
200
+ python_version = " 3.8"
201
+ platform = " linux"
202
+ disallow_any_unimported = true
203
+ disallow_any_explicit = true
204
+ disallow_untyped_defs = true
205
+ disallow_untyped_calls = true
206
+ disallow_incomplete_defs = true
207
+ check_untyped_defs = true
208
+ strict_optional = true
209
+
210
+ warn_redundant_casts = true
211
+ warn_unused_ignores = true
212
+ warn_no_return = true
213
+ warn_return_any = true
214
+ warn_unreachable = true
215
+ warn_unused_configs = true
You can’t perform that action at this time.
0 commit comments