-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (65 loc) · 1.91 KB
/
pyproject.toml
File metadata and controls
77 lines (65 loc) · 1.91 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
[project]
name = "wisc-halo"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
authors = [
{ name = "Kort Driessen", email = "driessenkort@gmail.com" }
]
requires-python = ">=3.12"
dependencies = [
"fastparquet>=2024.11.0",
"electro-py",
"ipykernel>=7.1.0",
"jupyterlab>=4.5.0",
"matplotlib>=3.10.7",
"numpy>=2.2.6",
"pandas>=2.3.3",
"polars>=1.36.0",
"pyarrow>=22.0.0",
"rich>=14.2.0",
]
[tool.uv.sources]
electro-py = { path = "../electro-py", editable = true }
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
# Build one wheel that contains both import packages.
[tool.hatch.build.targets.wheel]
packages = [
"src/wisc_halo",
]
# (Optional but nice for source distributions)
[tool.hatch.build.targets.sdist]
include = [
"src/wisc_halo/**",
"README.md",
"pyproject.toml",
]
# ------------------------------ RUFF (lint + format) ------------------------------
[tool.ruff]
line-length = 88
target-version = "py312"
# If you want Ruff to run both linting and formatting in "modern" mode:
# (preview is optional; keep it off if you want fewer surprises)
preview = true
[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP"]
# You can add more later (e.g. "N", "SIM", "C4", "RUF", etc.)
[tool.ruff.lint.isort]
known-first-party = ["wisc_halo", "electro_py"]
[tool.ruff.format]
# Ruff formatter is the Black replacement (no Black config needed).
# Keep default behavior unless you have a reason to tweak.
quote-style = "double"
indent-style = "space"
line-ending = "auto"
# ------------------------------ TY (type checker + LSP) ------------------------------
[tool.ty]
# You can keep this section minimal; ty will auto-discover a lot.
# Add rules as you start enforcing things.
[tool.ty.environment]
python-version = "3.12"
# Example: ignore (or warn/error) specific rules if needed:
# [tool.ty.rules]
# possibly-unresolved-reference = "warn"