-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
142 lines (125 loc) · 3.4 KB
/
pyproject.toml
File metadata and controls
142 lines (125 loc) · 3.4 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "narwhals_daft"
version = "0.4.1"
dependencies = ["daft>=0.5.18", "narwhals>=2.10.0"]
requires-python = ">=3.10"
[project.entry-points.'narwhals.plugins']
narwhals-daft = 'narwhals_daft'
[dependency-groups]
tests = [
"covdefaults",
"pytest",
"pytest-cov",
"pytest-env",
"pytest-randomly",
"pytest-xdist",
"hypothesis",
]
dev = [
"pre-commit",
"ruff>=0.12.8",
"pyright>=1.1.403",
{include-group = "typing"},
]
typing = [
"pyright",
]
[tool.hatch.build.targets.sdist]
include = [
"narwhals_daft/*",
]
[tool.hatch.build.targets.wheel]
include = [
"narwhals_daft/*",
]
[tool.pyright]
pythonPlatform = "All"
reportMissingTypeArgument = "error"
reportMissingImports = "none"
reportMissingModuleSource = "none"
reportPrivateImportUsage = "none"
reportPrivateUsage = "none"
reportUnusedExpression = "none"
typeCheckingMode = "basic"
include = ["narwhals_daft", "tests"]
ignore = [
"../.venv/",
"../../../**/Lib", # stdlib
"../../../**/typeshed*" # typeshed-fallback
]
[tool.ruff.lint]
preview = true
explicit-preview-rules = true
extend-safe-fixes = [
"C419", # unnecessary-comprehension-in-call
"C420", # unnecessary-dict-comprehension-for-iterable
"EM101", # raw-string-in-exception
"EM102", # f-string-in-exception
"PLR6201", # literal-membership
"TC", # flake8-type-checking
"UP", # pyupgrade
"PLW1514", # unspecified-encoding
]
extend-select = [
"PLR0914", # too-many-locals
"PLR0916", # too-many-boolean-expressions
"PLR1702", # too-many-nested-blocks
"PLR6201", # literal-membership
"PLW1514", # unspecified-encoding
]
select = ["ALL"]
ignore = [
"A001", # builtin-variable-shadowing
"A004", # builtin-import-shadowing
"ARG002", # unused-method-argument
"ANN401", # any-type
"COM812", # missing-trailing-comma
"D100", # undocumented-public-module
"D101", # undocumented-public-class
"D102", # undocumented-public-method
"D103", # undocumented-public-function
"D104", # undocumented-public-package
"D105", # undocumented-magic-method
"D107", # undocumented-public-init
"DTZ001", # call-datetime-without-tzinfo
"E501", # line-too-long
"FBT003", # boolean-positional-value-in-call (We enforce at definition site when it is a flag, not a value (e.g. `lit(False)`))
"FIX", # flake8-fixme
"PD010", # pandas-use-of-dot-pivot-or-unstack
"PLC0415", # `import` should be at the top-level of a file
"PLR0913", # too-many-arguments
"PLR2004", # magic-value-comparison
"PLW1641", # Object does not implement `__hash__` method
"SLF001", # private-member-access
"TD002", # missing-todo-author
"TD003", # missing-todo-link
"TD004", # missing-todo-colon
]
[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = ["format"]
[tool.ruff.lint.pep8-naming]
extend-ignore-names = [
"Series",
"DataFrame",
"_Window",
"F",
"_F",
]
[tool.ruff.lint.per-file-ignores]
"update_run_tests.py" = ['S603', 'T201']
"run_tests.py" = ['S603', 'T201']
"utils/*.py" = ["S603", "S607", "T201"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.pylint]
max-nested-blocks = 4
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
combine-as-imports = true
split-on-trailing-comma = false
[tool.ruff.format]
docstring-code-format = true
skip-magic-trailing-comma = true