-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
101 lines (81 loc) · 2.17 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
[tool.poetry]
name = "tabeline"
version = "0.5.0"
description = "A data frame and data grammar library"
authors = ["David Hagen <david@drhagen.com>"]
license = "MIT"
readme = "README.md"
documentation = "https://tabeline.drhagen.com"
repository = "https://github.com/drhagen/tabeline"
keywords = ["dataframe", "datatable", "datagrammar", "dplyr"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Topic :: Software Development :: Libraries :: Python Modules",
"Operating System :: OS Independent",
]
[tool.poetry.dependencies]
python = "^3.9"
polars = "^1"
numpy = "^1.24"
parsita = "^2.0"
typing_extensions = "^4.3"
pandas = { version = "^2.0", optional = true }
pyarrow = { version = "^18.0", optional = true }
[tool.poetry.dev-dependencies]
nox_poetry = "^1.0.3"
# Test
pytest = "^8"
pytest-cov = "*"
# Lint
ruff = "^0.1"
# Docs
mkdocs-material = "^9"
[tool.poetry.extras]
pandas = ["pandas", "pyarrow"]
[tool.pytest.ini_options]
addopts = ["--strict-config", "--strict-markers"]
xfail_strict = true
filterwarnings = ["error"]
[tool.coverage.run]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"@overload",
]
[tool.coverage.paths]
source = [
"src/",
".nox/test*/lib/python*/site-packages/",
".nox/test*/Lib/site-packages/",
]
[tool.ruff]
src = ["src"]
line-length = 99
[tool.ruff.lint]
extend-select = [
"I", # isort
"N", # pep8-naming
"RUF", # ruff
"B", # flake8-bugbear
"N", # flake8-broken-line
"C4", # flake8-comprehensions
"PIE", # flake8-pie
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"ERA", # flake8-eradicate
]
# F821: undefined-name; Parsita triggers this, but code coverage will catch it
# B905: zip-without-explicit-strict; strict not available in Python 3.9
extend-ignore = ["F821", "B905"]
[tool.ruff.lint.per-file-ignores]
# F401: unused-import; Allow unused imports in __init__.py files
"__init__.py" = ["F401"]
[tool.ruff.isort]
extra-standard-library = ["typing_extensions"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"