-
Notifications
You must be signed in to change notification settings - Fork 38
/
pyproject.toml
58 lines (53 loc) · 1.08 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
55
56
57
58
[project]
name = "hypha"
description = "A open source submission management platform to receive and manage applications for funding."
readme = "README.md"
[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"]