-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
222 lines (188 loc) · 4.77 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
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
[build-system]
requires = [
"hatchling",
"jupyterlab~=4.0",
]
build-backend = "hatchling.build"
[project]
name = "buckaroo"
description = "Buckaroo - GUI Data wrangling for pandas"
readme = "README.md"
requires-python = ">=3.9"
authors = [
{ name = "Paddy Mullen" },
]
keywords = [
"IPython",
"Jupyter",
"Widgets",
"pandas",
]
classifiers = [
"Framework :: Jupyter",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
dependencies = [
"ipywidgets>=7.6.0,<9",
"graphlib_backport>=1.0.0",
"packaging>=18"
]
version = "0.7.12"
[project.license]
file = "LICENSE.txt"
[project.optional-dependencies]
test = [
"nbval>=0.9",
"pandas>=1.3.5",
"pytest-cov>=3",
"pytest>=6",
"hypothesis>=6.88.1",
"polars>=1.9",
"polars[timezone]",
"pydantic>=2.5.2",
"pyarrow",
"geopandas<1.0",
"ruff",
"nbstripout"
]
polars = ["polars>=1.0,<1.6",
"polars[timezone]"
]
jupyterlab = ["jupyterlab>=3.6.0"]
notebook = ["notebook>=7.0.0"]
docs = [
"sphinx>=1.5",
"graphviz>=0.20.1",
"pytest-check-links"
]
build = [
"twine",
"build",
]
[project.urls]
Homepage = "https://github.com/paddymul/buckaroo"
[tool.hatch.build]
artifacts = [
"buckaroo/labextension",
]
[tool.hatch.build.targets.wheel.shared-data]
"buckaroo/labextension" = "share/jupyter/labextensions/buckaroo"
"buckaroo.json" = "etc/jupyter/nbconfig/notebook.d/buckaroo.json"
[tool.hatch.build.targets.sdist]
exclude = [
".github",
"examples",
"tests",
"ui-tests*",
"widget-examples",
"binder",
"*.yaml",
".npmignore",
".eslint*",
"__mocks__",
"*.yml",
"*.ini",
".pre*",
"jest*",
]
[tool.hatch.build.hooks.jupyter-builder]
ensured-targets = [
"buckaroo/labextension/package.json",
]
dependencies = ["hatch-jupyter-builder>=0.8.1"]
#dependencies = ["hatch-jupyter-builder@file:///Users/paddy/code/hatch-jupyter-builder"]
build-function = "hatch_jupyter_builder.npm_builder"
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
path = "."
build_cmd = "build"
npm = [
"yarn",
]
[tool.isort]
profile = "black"
known_first_party = [
"buckaroo",
"tests",
]
line_length = 80
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"docs/example-notebooks",
"*.ipynb"
]
# Same as Black.
line-length = 88
indent-width = 4
# Assume Python 3.8
target-version = "py38"
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["E4", "E7", "E9", "F"]
ignore = []
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["F401"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.per-file-ignores]
# lispy.py is a vendored and slightly modified bit of code from Peter Norvig
# Anyone trying to understand it is recommended to read Peter Norvig's writings
# don't want to add extaneous diffs
"buckaroo/jlisp/lispy.py" = [
"E401", "F601",
"E701", "E702", "E703", "E712"]
#__init__.py and widget utils does some bare excepts because it absolutely cannot error
#and give a non displayable dataframe
"buckaroo/__init__.py" = ["E722",
"F401", #it's an __init__.py, it needs to import unused imports
]
"buckaroo/widget_utils.py" = ["E722"]
"buckaroo/customizations/order_columns.py" = ["ALL"]
#used for safe_int
"buckaroo/customizations/all_transforms.py" = ["E722"] #bare except
"buckaroo/customizations/analysis.py" = [
"E741", #ambiguous variable name
"E722"] #bare except
#bare except used in a convience method for developer ergonomics
"tests/unit/commands/command_tests.py" = ["E722"] #bare except
"tests/unit/commands/polars_command_tests.py" = ["E722"] #bare except
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"