-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
69 lines (63 loc) · 1.48 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
[build-system]
requires = ["setuptools>=65.0", "wheel>=0.38"]
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 120
target-version = ["py38", "py39", "py310"]
[tool.ruff]
line-length = 120
target-version = "py38"
src = ["src"]
show-fixes = true
show-source = true
select = [
"F", # pyflakes
"E", # pycodestyle error
"W", # pycodestyle warning
"D3", # pydocstyle
"YTT", # flake8-2020
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"ISC", # flake8-implicit-str-concat
"PIE", # flake8-pie
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"I", # isort
"RUF",
]
ignore = [
# Module level import not at top of file
"E402",
# Line too long ({width} > {limit} characters)
"E501",
# Use a single if statement instead of nested if statements
"SIM102",
# Use ternary operator {contents} instead of if-else-block
"SIM108",
]
[tool.ruff.flake8-comprehensions]
allow-dict-calls-with-keyword-arguments = true
[tool.ruff.flake8-type-checking]
exempt-modules = [
"typing",
"typing_extensions",
"enum",
"datetime",
"pathlib",
"pytest",
"_pytest",
]
[tool.mypy]
ignore_missing_imports = true
disallow_untyped_defs = true
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
show_error_context = true
show_column_numbers = true
show_error_codes = true
pretty = true
[tool.pyright]
pythonVersion = "3.8"
pythonPlatform = "All"