forked from ggravlingen/pyesef
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
93 lines (75 loc) · 1.97 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
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
[tool.black]
target-version = ["py310"]
[tool.pylint.MASTER]
py-version = "3.10"
[tool.pylint.BASIC]
class-const-naming-style = "any"
[tool.pylint."MESSAGES CONTROL"]
disable = [
"broad-except",
"too-many-instance-attributes",
"too-many-return-statements",
"too-few-public-methods",
"too-many-locals",
]
[tool.pylint.REPORTS]
score = false
[tool.pylint.FORMAT]
expected-line-ending-format = "LF"
[tool.pylint.EXCEPTIONS]
overgeneral-exceptions = [
"BaseException",
"Exception",
]
[tool.pylint.TYPING]
[tool.pytest.ini_options]
testpaths = [
"tests",
]
norecursedirs = [
".git",
"testing_config",
]
[tool.ruff]
exclude = []
target-version = "py310"
select = [
"B007", # Loop control variable {name} not used within loop body
"B014", # Exception handler with duplicate exception
"C", # complexity
"D", # docstrings
"E", # pycodestyle
"F", # pyflakes/autoflake
"I", # isort
"ICN001", # import concentions; {name} should be imported as {asname}
"PGH004", # Use specific rule codes when using noqa
"PLC0414", # Useless import alias. Import alias does not rename original package.
"T20", # flake8-print
"UP", # pyupgrade
"W", # pycodestyle
]
# Same as Black.
line-length = 88
ignore = [# One of these is to be disabled..
"D213", # See https://github.com/charliermarsh/ruff/issues/2281
#"D212", # See https://github.com/charliermarsh/ruff/issues/2281
"D203", # See https://github.com/charliermarsh/ruff/issues/2281
#"D211", # See https://github.com/charliermarsh/ruff/issues/2281
# keep-runtime-annotations
'UP006', # Non PEP585 annotations
'UP007', # Non PEP604 annotations
]
[tool.ruff.flake8-pytest-style]
fixture-parentheses = false
[tool.ruff.pydocstyle]
convention = 'pep257'
[tool.ruff.isort]
combine-as-imports = true
force-sort-within-sections = true
forced-separate = [
"tests",
]
known-first-party = [
"pyesef",
"tests",
]