-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (68 loc) · 1.61 KB
/
Copy pathpyproject.toml
File metadata and controls
86 lines (68 loc) · 1.61 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
[project]
name = "clay_printing"
version = "0.1.0"
description = "A project for control clay printing controller"
authors = [{ name = "Wei-Ting Chen", email = "chen@mesh.ch" }]
readme = "README.md"
requires-python = ">=3.12"
# add you dependencies here
dependencies = [
"loguru>=0.7.3",
"pytest-cov>=6.0.0",
"pytest>=8.3.4",
"ruff>=0.8.2",
"python-multipart>=0.0.19",
"debugpy>=1.8.9",
"numpy>=1.21.2",
"pydantic>=2.10.6",
# ads communication with beckhoff TwinCAT
"pyads>=3.4.2",
]
[project.optional-dependencies]
dev = ["black>=23.0.0"]
[tool.uv.sources]
# Building and Testing
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build]
packages = ["src/clay_printing"]
[tool.hatch.build.targets.wheel]
packages = ["src/clay_printing"]
[tool.hatch.metadata]
allow-direct-references = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "-v --cov=clay_printing"
pythonpath = ["src"]
# Linting and Formatting
[tool.ruff]
line-length = 120
indent-width = 2
# you can check https://docs.astral.sh/ruff/configuration/
[tool.ruff.format]
indent-style = "space"
line-ending = "auto"
[tool.ruff.lint]
select = [
"RUF", # ruff-specific rules
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"N", # pep8-naming
"I", # isort
]
ignore = ["D417", "D107"]
[tool.ruff.lint.isort]
known-first-party = ["clay_printing"]
known-third-party = ["numpy"]
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]
[tool.ruff.lint.pydocstyle]
convention = "google"