forked from narwhals-dev/narwhals
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
98 lines (87 loc) · 1.79 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "narwhals"
version = "0.6.9"
authors = [
{ name="Marco Gorelli", email="[email protected]" },
]
description = "Extremely lightweight compatibility layer between pandas, Polars, cuDF, and Modin"
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
[project.urls]
"Homepage" = "https://github.com/MarcoGorelli/narwhals"
"Bug Tracker" = "https://github.com/MarcoGorelli/narwhals"
[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 = ["slow: marks tests as slow (deselect with '-m \"not slow\"')"]
[tool.coverage.run]
plugins = ["covdefaults"]
[tool.coverage.report]
exclude_also = [
"> POLARS_VERSION",
"if sys.version_info() <",
]
[tool.mypy]
strict = true
[[tool.mypy.overrides]]
# the pandas API is just too inconsistent for type hinting to be useful.
module = [
"pandas.*",
"cudf.*",
"modin.*",
]
ignore_missing_imports = true