-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (93 loc) · 2.21 KB
/
Copy pathpyproject.toml
File metadata and controls
108 lines (93 loc) · 2.21 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
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
[project]
name = "schema2ui"
version = "0.1.0.dev0"
authors = [{name = "forman"}]
requires-python = ">= 3.11"
dependencies = [
"panel",
"param",
"pydantic",
]
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
# --------------------------------
# pixi configuration
# --------------------------------
[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["linux-64", "win-64", "osx-64"]
[tool.pixi.dependencies]
# --- Library
panel = ">=1.9.3,<2"
param = ">=2.4.1,<3"
pydantic = ">=2.13.4,<3"
# --- Optional widgets support
# - panel/widgets/path
fsspec = ">=2026.6.0,<2027"
# - panel/widgets/bbox
ipykernel = ">=6.31.0,<7"
ipyleaflet = ">=0.20.0,<0.21"
ipywidgets = ">=8.1.8,<9"
ipywidgets_bokeh = ">=1.7.0,<2"
# --- schema2ui tool (optional)
pyyaml = ">=6.0.3,<7"
typer = ">=0.26.8,<0.27"
# --- IDE integration
pixi-pycharm = ">=0.0.11,<0.0.12"
# --- Development
isort = ">=8.0.1,<9"
mypy = ">=2.1.0,<3"
pytest = ">=9.1.1,<10"
pytest-cov = ">=7.1.0,<8"
ruff = ">=0.15.20,<0.16"
# --- Build & publish
hatch = ">=1.17.0,<2"
pip = ">=26.1.2,<27"
rattler-build = ">=0.68.0,<0.69"
twine = ">=6.2.0,<7"
[tool.pixi.pypi-dependencies]
schema2ui = { path = ".", editable = true }
[tool.pixi.tasks]
coverage = "pytest --cov src/schema2ui --cov-report html tests"
isort = "isort src tests"
mypy = "mypy src/schema2ui"
ruff-check = "ruff check"
ruff-format = "ruff format"
tests = "pytest"
schema2ui = "python -m tests.panel.schema2ui"
[tool.pixi.tasks.format]
depends-on = [
"isort",
"ruff-format",
]
[tool.pixi.tasks.checks]
depends-on = [
"ruff-check",
"mypy",
]
# --------------------------------
# Configuration for other tools
# --------------------------------
[tool.isort]
line_length = 88
[tool.black]
line-length = 88
[tool.ruff.lint]
select = [
"B", # pycodestyle (coding style)
"E", # pyflakes (basic errors)
"F", # bugbear (common logic issues)
"I", # Isort (import order)
"S", # Bandit (security checks)
]
ignore = [
"E501", # line-too-long
"I001", # unsorted-imports
"S101", # assert
]
isort = { relative-imports-order = "closest-to-furthest" }
[tool.mypy]
python_version = "3.12"
plugins = ["pydantic.mypy"]
disable_error_code = ["import-untyped"]