1
- # ########################
2
- # PEP 621 configuration #
3
- # ########################
4
-
5
1
[build-system ]
6
2
requires = [" hatchling" ]
7
3
build-backend = " hatchling.build"
@@ -101,17 +97,9 @@ documentation = "https://crawlee.dev/python/docs/"
101
97
issue_tracker = " https://github.com/apify/crawlee-python/issues"
102
98
repository = " https://github.com/apify/crawlee-python"
103
99
104
- # ######################
105
- # Hatch configuration #
106
- # ######################
107
-
108
100
[tool .hatch .build .targets .wheel ]
109
101
packages = [" src/crawlee" ]
110
102
111
- # #####################
112
- # Ruff configuration #
113
- # #####################
114
-
115
103
[tool .ruff ]
116
104
line-length = 120
117
105
include = [" src/**/*.py" , " tests/**/*.py" , " docs/**/*.py" , " website/**/*.py" ]
@@ -194,20 +182,12 @@ known-first-party = ["crawlee"]
194
182
[tool .ruff .lint .pylint ]
195
183
max-branches = 18
196
184
197
- # #######################
198
- # Pytest configuration #
199
- # #######################
200
-
201
185
[tool .pytest .ini_options ]
202
186
addopts = " -ra"
203
187
asyncio_default_fixture_loop_scope = " function"
204
188
asyncio_mode = " auto"
205
189
timeout = 1200
206
190
207
- # #####################
208
- # Mypy configuration #
209
- # #####################
210
-
211
191
[tool .mypy ]
212
192
python_version = " 3.9"
213
193
plugins = [" pydantic.mypy" ]
@@ -234,25 +214,13 @@ module = [
234
214
]
235
215
ignore_missing_imports = true
236
216
237
- # #############################
238
- # BasedPyright configuration #
239
- # #############################
240
-
241
217
[tool .basedpyright ]
242
218
pythonVersion = " 3.9"
243
219
typeCheckingMode = " standard"
244
220
include = [" src" , " tests" , " docs" , " website" ]
245
221
246
- # #########################
247
- # Coverage configuration #
248
- # #########################
249
-
250
222
[tool .coverage .report ]
251
223
exclude_lines = [" pragma: no cover" , " if TYPE_CHECKING:" , " assert_never()" ]
252
224
253
- # #####################
254
- # Ipdb configuration #
255
- # #####################
256
-
257
225
[tool .ipdb ]
258
226
context = 7
0 commit comments