-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
78 lines (69 loc) · 1.81 KB
/
pyproject.toml
File metadata and controls
78 lines (69 loc) · 1.81 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
# SPDX-License-Identifier: MIT
# keep loosely in sync with
# https://raw.githubusercontent.com/systemd/mkosi/refs/heads/main/pyproject.toml
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "barrage"
authors = [
{name = "Daan De Meyer", email = "daan@amutable.com"},
{name = "Michael Vogt", email = "michael@amutable.com"},
]
version = "0"
description = "Run python tests concurrently"
license = "MIT"
readme = "README.md"
requires-python = ">=3.12"
[project.scripts]
mkosi = "barrage.__main__:main"
[tool.setuptools]
packages = [
"barrage",
]
[tool.isort]
profile = "black"
include_trailing_comma = true
multi_line_output = 3
py_version = "312"
[tool.mypy]
python_version = 3.12
# belonging to --strict
warn_unused_configs = true
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_untyped_decorators = true
disallow_incomplete_defs = true
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = false
warn_return_any = true
no_implicit_reexport = true
# extra options not in --strict
pretty = true
show_error_codes = true
show_column_numbers = true
warn_unreachable = true
strict_equality = true
scripts_are_modules = true
[tool.ruff]
target-version = "py312"
line-length = 109
lint.select = [
"E", # pycodestyle
"W", # pycodestyle (trailing whitespace)
"F", # pyflakes
"I", # isort
"UP", # pypgrade
"B" # flake8-bugbear
]
# singleton() is designed to be used as a default parameter value for
# function-based test injection, so B008 is a false positive here.
lint.flake8-bugbear.extend-immutable-calls = [
"barrage.singleton.singleton",
]
[tool.ty.rules]
unused-type-ignore-comment = "ignore"