forked from HyphaApp/hypha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
53 lines (49 loc) · 969 Bytes
/
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
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = 'hypha.settings.test'
addopts = [
'-n=auto',
'--failed-first',
]
python_files = [
'tests.py',
'test_*.py',
'*_tests.py',
]
testpaths = [
"hypha"
]
filterwarnings = [
'ignore::DeprecationWarning',
'ignore::PendingDeprecationWarning',
]
[tool.coverage.run]
parallel = true
plugins = [
'django_coverage_plugin'
]
omit = [
'*migrations*',
'*test*',
'hypa/public/*',
]
# https://github.com/charliermarsh/ruff#ruff
[tool.ruff.lint]
ignore = [
"E501", # line too long
"C901", # too complex
# 'F821',
# 'W605',
]
select = [
'C', # flake8-comprehensions
'B', # flake8-bugbear
'E', # pycodestyle errors
'F', # pyflakes
'I', # iSort
'W', # pycodestyle warnings
]
[tool.ruff.lint.per-file-ignores]
"hypha/settings/*.py" = ["F405"]
"*migrations/*.py" = ["I001"]
[tool.ruff.lint.isort]
known-first-party = ["hypha", "addressfield"]