-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
102 lines (93 loc) · 2.18 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
96
97
98
99
100
101
102
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "dataframe_api_compat"
version = "0.2.7"
authors = [
{ name="Marco Gorelli", email="[email protected]" },
]
description = "Implementation of the DataFrame Standard for pandas and Polars"
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"packaging; python_version < '3.9'",
]
[project.urls]
"Homepage" = "https://github.com/data-apis/dataframe-api-compat"
"Bug Tracker" = "https://github.com/data-apis/dataframe-api-compat"
[tool.ruff]
line-length = 90
fix = true
target-version = "py38"
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',
'D',
'DTZ',
'E501',
'FBT003', # todo: enable
'FIX',
'PD',
'PLR0911',
'PLR0912',
'PLR5501',
'PLR2004',
'PT011',
'PTH',
'RET505',
'S',
'SLF001',
'TD',
'TRY004'
]
[tool.ruff.isort]
force-single-line = true
[tool.black]
line-length = 90
[tool.pytest.ini_options]
filterwarnings = [
"error",
'ignore:distutils Version classes are deprecated:DeprecationWarning',
# modin specific
'ignore:.*pkg_resources:DeprecationWarning',
'ignore:Ray execution environment not yet initialized:UserWarning',
"ignore:Distributing <class '.*'> object.:UserWarning",
'ignore:.*ray:ResourceWarning',
'ignore:.*is not currently supported by PandasOnRay:UserWarning',
'ignore:.*implementation has mismatches with pandas:UserWarning',
]
xfail_strict = true
[tool.coverage.run]
plugins = ["covdefaults"]
[tool.coverage.report]
exclude_also = [
"> POLARS_VERSION",
"if sys.version_info() <",
]