-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
54 lines (48 loc) · 1.15 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[project]
requires-python = ">=3.11"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "config.settings.test"
addopts = "-ra --cov=gia-api --cov-report term-missing:skip-covered"
[tool.coverage.run]
branch = true
# plugins = ["django_coverage_plugin"]
omit = [
"*/config/*",
"*/migrations/*",
"*__init__.py",
"*manage.py",
"*apps.py",
]
[tool.coverage.report]
exclude_also = ["if __name__ == .__main__.:"]
precision = 2
[tool.ruff.lint]
ignore = [
"E203", # whitespace before ':'
"E501", # line length violations
]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"I", # isort
"UP", # pyupgrade
"FBT", # flake8-boolean-trap
"PIE", # flake8-pie
"SIM", # flake8-simplify
"PT", # flake8-pytest-style
"RET", # flake8-return
"PTH", # flake8-use-pathlib
"S", # flake8-bandit
]
[tool.ruff.lint.per-file-ignores]
"*test*" = ["S101"] # allow assert statements in test cases
"gia-api/config/settings/*" = [
"F403", # star imports
"F405", # star imports
]
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["apps"]