forked from zoltanctoth/mlops-course
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
30 lines (25 loc) · 1.38 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[tool.isort]
profile = "black"
src_paths = ["exploration", "train_model", "spam_service", "test_model"]
honor_noqa = true
[tool.pytest.ini_options]
testpaths = ["test_model"]
addopts = "-vx"
asyncio_mode = "auto"
filterwarnings = ["ignore::DeprecationWarning"]
[tool.mypy]
exclude = ['test_model/*', 'build/*']
disallow_untyped_defs = true # Disallows defining functions without type annotations or with incomplete type annotations.
disallow_any_unimported = false # Disallows importing objects whose type is Any from modules that do not have an explicit annotation.
warn_return_any = true # Warns if a function whose return type is not annotated returns an expression of type Any.
no_implicit_optional = true # Disallows implicit Optional types in function signatures.
check_untyped_defs = true # Type-checks the interior of functions without type annotations.
show_error_codes = true # Shows the error codes in the error messages.
warn_unused_ignores = true # Warns about unused '# type: ignore' comments.
ignore_missing_imports = true # Ignores imports that are missing a type annotation.
ignore_missing_imports_per_module = true # This is a workaround for https://github.com/python/mypy/issues/10709
strict_equality = true # Disallows comparing an expression of type Any to a literal, as this is often a bug.
[tool.pylint]
disable = "C0111" # missing-module-docstring
[tool.flake8]
ignore = "D100"