-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
55 lines (50 loc) · 1.31 KB
/
pyproject.toml
File metadata and controls
55 lines (50 loc) · 1.31 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true
scripts_are_modules = true
warn_unused_configs = true
show_error_codes = true
allow_redefinition = true
warn_unreachable = true
check_untyped_defs = true
plugins = ["pydantic.mypy"]
[tool.ruff.lint]
extend-select = [
"B", # flake8-bugbear
"I", # isort
"ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
"ICN", # flake8-import-conventions
"G", # flake8-logging-format
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"T20", # flake8-print
"YTT", # flake8-2020
"EXE", # flake8-executable
"PYI", # flake8-pyi
]
ignore = [
"PLC", # Convention related pylint codes
"PLR", # Refactor related pylint codes
]
isort.required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.per-file-ignores]
"tasks.py" = [
"T20" # print-statements
]
[tool.pytest.ini_options]
addopts = "-rs --cov=app --cov-report=term-missing:skip-covered --no-cov-on-fail"
filterwarnings = [
# Fail on any warning
"error",
# Ignore ResourceWarnings
"ignore::ResourceWarning",
# Ignore user warnings from tests
"ignore:No live Redis server found.*:UserWarning",
]