-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (95 loc) · 2.55 KB
/
Copy pathpyproject.toml
File metadata and controls
115 lines (95 loc) · 2.55 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
108
109
110
111
112
113
114
115
[build-system]
requires = ["setuptools>=46.4"]
build-backend = "setuptools.build_meta"
[project]
name = "ewoksdraw"
version = "0.0.1"
authors = [{ name = "ESRF", email = "dau-pydev@esrf.fr" }]
description = "Render Ewoks workflows as SVG"
readme = { file = "README.md", content-type = "text/markdown" }
license = { file = "LICENSE.md" }
classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
]
requires-python = ">=3.10"
dependencies = [
"defusedxml",
"ewokscore<5",
"reportlab",
"typing-extensions; python_version < '3.11'",
"xmltodict",
"pyelk @ git+https://github.com/LudoBroche/pyelk.git@ewoksdraw-modifications",
]
[project.urls]
Homepage = "https://github.com/ewoks-kit/ewoksdraw/"
Documentation = "https://ewoksdraw.readthedocs.io/"
Repository = "https://github.com/ewoks-kit/ewoksdraw/"
Issues = "https://github.com/ewoks-kit/ewoksdraw/issues/"
Changelog = "https://github.com/ewoks-kit/ewoksdraw/-/blob/main/CHANGELOG.md"
[project.optional-dependencies]
test = [
"pytest >=7",
]
dev = [
"ewoksdraw[test]",
"ruff>=0.16.0",
"mypy",
]
doc = [
"sphinx >=4.5",
"sphinx-autodoc-typehints >=1.16",
"pydata-sphinx-theme",
]
[tool.setuptools]
package-dir = { "" = "src" }
[tool.setuptools.package-data]
ewoksdraw = ["**/*.css", "**/*.json"]
[tool.setuptools.packages.find]
where = ["src"]
[tool.coverage.run]
omit = ["*/tests/*"]
[tool.ruff]
src = ["."]
line-length = 88
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"S", # flake8-bandit
]
[tool.ruff.lint.per-file-ignores]
"src/ewoksdraw/tests/*.py" = [
"S101" # allow asserts
]
[tool.ruff.lint.isort]
force-single-line = true
known-first-party = ["ewoksdraw"]
[tool.mypy]
ignore_missing_imports = true
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = "setuptools.*"
ignore_missing_imports = true
########
# pixi #
########
[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["linux-64", "osx-64", "osx-arm64", "win-64"]
[tool.pixi.pypi-dependencies]
ewoksdraw = { path = ".", editable = true }
[tool.pixi.feature.pylow.dependencies]
python = "3.10.*"
[tool.pixi.environments]
default = ["dev"]
test-lowest = ["test", "pylow"]
[tool.pixi.tasks]
test = "pytest"
test-lowest = "pixi run -e test-lowest test"
lint = "ruff check --fix . && ruff format ."
typecheck = "mypy src"
full-ci = "pixi run lint && pixi run typecheck && pixi run test && pixi run test-lowest"
graph-to-svg = "python examples/graph_to_svg.py"