-
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathpyproject.toml
More file actions
95 lines (85 loc) · 1.76 KB
/
Copy pathpyproject.toml
File metadata and controls
95 lines (85 loc) · 1.76 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
[tool.ruff]
target-version = "py310"
line-length = 88
fix = true
lint.select = [
# flake8-2020
"YTT",
# flake8-bandit
"S",
# flake8-bugbear
"B",
# flake8-builtins
"A",
# flake8-comprehensions
"C4",
# flake8-debugger
"T10",
# flake8-simplify
"SIM",
# mccabe
"C90",
# pycodestyle
"E",
"W",
# pyflakes
"F",
# pygrep-hooks
"PGH",
# pyupgrade
"UP",
# ruff
"RUF",
]
lint.ignore = [
# DoNotAssignLambda
"E731",
# "S320", # this rule has been removed and ignoring it has no effect
"S607", # we can't really use absolute paths here
"S603",
"UP030", # can be activated and worked on later
]
[tool.ruff.lint.isort]
case-sensitive = false
no-sections = true
force-single-line = true
from-first = true
lines-after-imports = 2
lines-between-types = 1
order-by-type = false
[tool.ruff.format]
preview = true
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["E501", "RUF001", "S101"]
"**/test_*" = ["E501", "RUF001", "S101", "S603", "S607"]
"skeleton-tests/*" = ["E501", "RUF001", "S101", "S603", "S607"]
"setup.py" = ["SIM115"]
[tool.towncrier]
directory = "news/"
filename = "CHANGES.rst"
title_format = "{version} ({project_date})"
underlines = ["-", ""]
[[tool.towncrier.type]]
directory = "breaking"
name = "Breaking changes:"
showcontent = true
[[tool.towncrier.type]]
directory = "feature"
name = "New features:"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bug fixes:"
showcontent = true
[[tool.towncrier.type]]
directory = "internal"
name = "Internal:"
showcontent = true
[[tool.towncrier.type]]
directory = "documentation"
name = "Documentation:"
showcontent = true
[[tool.towncrier.type]]
directory = "tests"
name = "Tests:"
showcontent = true