-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (100 loc) · 2.06 KB
/
pyproject.toml
File metadata and controls
108 lines (100 loc) · 2.06 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[build-system]
requires = ["setuptools >= 43", "wheel", "setuptools_scm[toml] >= 3.4"]
build-backend = "setuptools.build_meta"
[tool.coverage.report]
exclude_lines = [
"@(abc.)?abstract*",
"except ImportError(.*):",
"if __name__ == .__main__.:",
"pragma: no cover",
]
[tool.coverage.run]
omit = [
"*/setup.py",
"*/dist/*",
"*/tests/*",
"*/.tox/*",
"*/.eggs/*",
]
[tool.pytest.ini_options]
log_level = "DEBUG"
DJANGO_SETTINGS_MODULE = "server.settings_test"
pythonpath = [".", "server"]
addopts = ["-v", "--cov=.", "--cov-report", "term-missing"]
filterwarnings = [
'ignore:"@coroutine" decorator:DeprecationWarning:aiohttp',
'ignore:You passed a bytestring:DeprecationWarning:flake8.options.config',
"ignore:Using or importing the ABCs from 'collections':DeprecationWarning:celery.canvas",
"ignore:Using or importing the ABCs from 'collections':DeprecationWarning:yaml",
]
norecursedirs = [
".*",
"build",
"dist",
]
[tool.mypy]
files = ["Collector", "FTB", "Reporter"]
exclude = ['/tests/']
ignore_missing_imports = true
show_error_codes = true
strict = true
[tool.ruff]
extend-exclude = ["**/migrations/*.py"]
fix = true
target-version = "py310"
[tool.ruff.lint]
select = [
# flake8-bugbear
"B",
# flake8-comprehensions
"C4",
# pycodestyle
"E",
# Pyflakes
"F",
# flake8-future-annotations
"FA",
# Flynt
"FLY",
# refurb
"FURB",
# flake8-logging-format
"G",
# isort
"I",
# flake8-logging
"LOG",
# Perflint
"PERF",
# flake8-pie
"PIE",
# flake8-quotes
"Q",
# flake8-return
"RET",
# Ruff-specific rules
"RUF",
# flake8-simplify
"SIM",
# flake8-type-checking
"TC",
# pyupgrade
"UP",
# pycodestyle
"W",
]
ignore = ["RUF012"]
[tool.ruff.lint.isort]
known-first-party = [
"Collector",
"CovReporter",
"EC2StatusReporter",
"FTB",
"Reporter",
"TaskStatusReporter",
"covmanager",
"crashmanager",
"ec2spotmanager",
"taskmanager",
]
[tool.setuptools_scm]