-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
96 lines (84 loc) · 1.65 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
94
95
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "auto-walrus"
version = "0.3.4"
authors = [
{ name="Marco Gorelli", email="[email protected]" },
]
description = "Automatically apply the awesome walrus operator"
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
'tomli; python_version<"3.11"',
]
[project.scripts]
auto-walrus = "auto_walrus:main"
[project.urls]
"Homepage" = "https://github.com/MarcoGorelli/auto-walrus"
"Bug Tracker" = "https://github.com/MarcoGorelli/auto-walrus"
[tool.ruff]
line-length = 90
fix = true
target-version = "py38"
lint.select = [
"ALL",
]
lint.ignore = [
'A001',
'A003',
'ANN101',
'ANN401',
'ARG002', # todo: enable
'ARG003', # todo: enable
'C901',
'COM812',
'D',
'DTZ',
'E501',
'EM101', # todo: enable
'ERA001', # todo: enable
'FBT003', # todo: enable
'FIX',
'ICN001',
'ISC001',
'PD',
'PLR0911',
'PLR0912',
'PLR5501',
'PLR2004',
'PT011',
'PTH',
'RET505',
'S',
'SLF001',
'TD',
'TRY003', # todo: enable
'TRY004'
]
[tool.ruff.lint.isort]
force-single-line = true
[tool.black]
line-length = 90
[tool.pytest.ini_options]
filterwarnings = [
"error",
'ignore:distutils Version classes are deprecated:DeprecationWarning',
]
xfail_strict = true
markers = ["config_content"]
[tool.coverage.run]
plugins = ["covdefaults"]
[tool.coverage.report]
exclude_also = [
"> POLARS_VERSION",
"if sys.version_info() <",
]
[tool.mypy]
strict = true