-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathpyproject.toml
More file actions
75 lines (67 loc) · 1.74 KB
/
Copy pathpyproject.toml
File metadata and controls
75 lines (67 loc) · 1.74 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
[project]
name = "bots"
requires-python = ">= 3.14"
[tool.mypy]
python_version = "3.14"
strict = true
follow_imports = 'silent' # https://github.com/python-lsp/pylsp-mypy/issues/81
scripts_are_modules = true # allow checking all scripts in one invocation
warn_return_any = false
[[tool.mypy.overrides]]
# things which may be unavailable when running checks
module = [
'libvirt',
'libvirt_qemu',
'nacl',
'pika.*',
]
ignore_missing_imports = true
[tool.ruff]
exclude = [
".git/",
]
line-length = 118
preview = true
target-version = 'py314'
[tool.ruff.format]
quote-style = "preserve"
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D300", # pydocstyle: Forbid ''' in docstrings
"DTZ", # flake8-datetimez
"E", # pycodestyle
"EXE", # flake8-executable
"F", # pyflakes
"G", # flake8-logging-format
"I", # isort
"ICN", # flake8-import-conventions
"PLE", # pylint errors
"ISC", # flake8-implicit-str-concat
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PLE", # pylint errors
"RSE", # flake8-raise
"RUF", # ruff rules
"T10", # flake8-debugger
"UP032", # f-string
"W", # warnings (mostly whitespace)
"YTT", # flake8-2020
]
[tool.pytest.ini_options]
addopts = ["--cov-config=pyproject.toml"] # for subprocesses
pythonpath = ["."]
required_plugins = ["pytest-asyncio"]
asyncio_mode = 'auto'
asyncio_default_fixture_loop_scope = 'function'
[tool.coverage.run]
branch = true
[tool.coverage.report]
show_missing = true
skip_covered = true
exclude_lines = [
"pragma: no cover", # default
"raise NotImplementedError",
]