-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
103 lines (90 loc) · 2.64 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
[project]
name = "altair-upset"
dynamic = ["version"]
description = "Create interactive UpSet plots using Altair"
readme = "README.md"
requires-python = ">=3.9,<4"
license = {text = "MIT"}
keywords = ["altair", "visualization", "upset", "sets", "vega"]
authors = [
{name = "Edmund Miller", email = "[email protected]"}
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Visualization",
]
dependencies = [
"altair>=5.0.0,<6.0.0",
"pandas>=2.0.0,<3.0.0",
]
[project.urls]
Homepage = "https://github.com/edmundmiller/altair-upset"
Documentation = "https://altair-upset.readthedocs.io"
Repository = "https://github.com/edmundmiller/altair-upset.git"
Issues = "https://github.com/edmundmiller/altair-upset/issues"
[dependency-groups]
test = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"syrupy>=4.0.0",
"vl-convert-python>=1.7.0",
"jsonschema>=4.0.0",
"polars>=0.20.0",
"pyarrow>=14.0.0",
]
dev = [
"ruff>=0.1.0",
"pre-commit>=3.0.0",
"taskipy>=1.14.1",
]
docs = [
"sphinx>=7.0.0",
"pydata-sphinx-theme>=0.16.1",
"numpydoc>=1.6.0",
"myst-parser>=2.0.0",
"sphinxext-altair>=0.2.0",
"matplotlib>=3.8.0",
"docstrfmt>=1.9.0",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "--cov=altair_upset --cov-report=term-missing"
[tool.ruff]
line-length = 88
target-version = "py38"
select = ["E", "F", "I", "UP"]
[tool.mypy]
python_version = "3.8"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
[tool.uv]
package = true
default-groups = ["dev", "test"]
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.taskipy.settings]
cwd = "."
[tool.taskipy.tasks]
lint = "ruff check"
format = "ruff format --diff --check"
ruff-fix = "task lint && ruff format"
type-check = "mypy altair tests"
pytest = "pytest"
doc-clean = "rm -rf docs/_build && rm -rf docs/_images"
# IDK doc-mkdir = "python -c \"import tools;tools.fs.mkdir('doc/_images')\""
doc-build-html = "sphinx-build -T -b html -d docs/_build docs docs/_build/html"
doc-clean-build = "task doc-clean && task doc-build-html"
clean = "python -c \"import tools;tools.fs.rm('dist')\""
build = "task clean && uv build"
publish = "task build && uv publish"