-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
pyproject.toml
92 lines (78 loc) · 2.26 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
#:schema https://json.schemastore.org/pyproject.json
[project]
name = "pyarrow-stubs"
version = "17.12"
description = "Type annotations for pyarrow"
authors = [{ name = "ZhengYu, Xu", email = "[email protected]" }]
license = "BSD-2-Clause"
classifiers = [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.8,<4"
dependencies = ["pyarrow >=17"]
[project.urls]
homepage = "https://github.com/zen-xu/pyarrow-stubs"
repository = "https://github.com/zen-xu/pyarrow-stubs.git"
issues = "https://github.com/zen-xu/pyarrow-stubs/issues"
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[tool.hatch.build.targets.wheel]
packages = ["pyarrow-stubs"]
[tool.isort]
profile = "black"
[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"]
[tool.pixi.dependencies]
python = "3.11"
pip = "*"
[tool.pixi.pypi-dependencies]
pyarrow-stubs = { path = ".", editable = true }
ipython = "*"
scipy = "*"
pre-commit = "*"
mypy = ">=1.11"
ruff = ">=0.5"
types-cffi = "*"
pandas-stubs = "*"
hatchling = "*"
fsspec = "*"
pyright = { version = ">=1.1.385,<2", extras = ["nodejs"] }
[tool.pixi.tasks]
pyright = { cmd = "pyright" }
pre-commit = { cmd = "pre-commit" }
[tool.ruff]
fix = true
line-length = 99
target-version = "py38"
[tool.ruff.lint]
extend-select = [
"I", # isort
"N", # pep8-naming
"PYI", # flake8-pyi
]
ignore = [
"PYI015", # assignment-default-in-stub
"PYI011", # typed-argument-default-in-stub
"N818", # error-suffix-on-exception-name
]
[tool.ruff.lint.isort]
lines-after-imports = 2
lines-between-types = 1
[tool.ruff.format]
docstring-code-format = true
[tool.mypy]
explicit_package_bases = true
files = "pyarrow-stubs"
namespace_packages = true
show_error_codes = true
disable_error_code = ["overload-overlap", "import-not-found"]