-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
94 lines (86 loc) · 1.73 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "polars_upgrade"
version = "0.3.6"
authors = [
{ name="Marco Gorelli", email="[email protected]" },
]
description = "Automatically upgrade Polars code to the latest version."
readme = "README.md"
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"tokenize-rt>=5.2.0",
]
[project.scripts]
polars-upgrade = "polars_upgrade._main:main"
[tool.ruff]
line-length = 90
fix = true
target-version = "py38"
[tool.ruff.lint]
select = [
# "E", # pycodestyle
# "W", # pycodestyle
# "F", # Pyflakes
# "B", # flake8-bugbear
# "C4", # flake8-comprehensions
# "D", # flake8-docstrings
# "SIM", # flake8-simplify
# "TCH", # flake8-type-checking
# "TID", # flake8-tidy-imports
# "Q", # flake8-quotes
# "UP", # pyupgrade
# "PT", # flake8-pytest-style
# "RUF", # Ruff-specific rules
# "PTH", # flake8-use-pathlib
"ALL",
]
ignore = [
"A003",
"ANN101",
"ANN401",
"ARG002", # todo: enable
"ARG003", # todo: enable
"C901",
"COM812",
"D",
"DTZ",
"E501",
"FBT003", # todo: enable
"FIX",
"ISC001",
"PD",
"PLR0911",
"PLR0912",
"PLR2004",
"PLR5501",
"PT011",
"PTH",
"RET505",
"S",
"SLF001",
"TD",
"TRY004"
]
[tool.ruff.lint.isort]
force-single-line = true
[tool.pytest.ini_options]
filterwarnings = [
"error",
"ignore:distutils Version classes are deprecated:DeprecationWarning",
]
xfail_strict = true
[tool.coverage.run]
plugins = ["covdefaults"]
[tool.coverage.report]
exclude_also = [
"if POLARS_VERSION < ",
"if sys.version_info() <",
]