forked from High-Voltage-Engineering/catscan
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (100 loc) · 2.09 KB
/
pyproject.toml
File metadata and controls
110 lines (100 loc) · 2.09 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
[project]
name = "catscan"
description = "Linter for TwinCAT"
version = "0.0.0"
requires-python = ">=3.12"
keywords = []
authors = [
{ name = "Dennis Hilhorst", email = "dhilhorst@highvolteng.com" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"License :: Other/Proprietary License"
]
dependencies = [
"click>=8.1",
"lxml",
"pydantic>=2.6,<=2.9.2",
"ruamel.yaml>=0.18.6",
"blark"
]
[dependency-groups]
dev = [
"pytest>=8.4.2",
]
[tool.uv.sources]
blark = { git = "https://github.com/High-Voltage-Engineering/blark.git" }
[build-system]
requires = ["uv-build"]
build-backend = "uv_build"
[project.urls]
Issues = "https://github.com/High-Voltage-Engineering/catscan/issues"
Source = "https://github.com/High-Voltage-Engineering/catscan"
[tool.black]
target-version = ["py312"]
line-length = 96
skip-string-normalization = true
[tool.ruff]
target-version = "py312"
line-length = 96
lint.select = [
"A",
"ARG",
"B",
"C",
"DTZ",
"E",
"EM",
"F",
"FBT",
"I",
"ICN",
"ISC",
"N",
"PLC",
"PLE",
"PLR",
"PLW",
"Q",
"RUF",
"S",
"T",
"TID",
"UP",
"W",
"YTT",
]
lint.ignore = [
# Allow non-abstract empty methods in abstract base classes
"B027",
# Allow boolean arguments, nitpicker
"FBT001",
"FBT002",
"FBT003",
# Ignore checks for possible passwords
"S105",
"S106",
"S107",
# Ignore complexity
"C901",
"PLR0911",
"PLR0912",
"PLR0913",
"PLR0915",
# Needed to keep CI/CD happy
"UP037",
# Asserts have a legitate usecase
"S101",
# RUF is too stupid to understand direct references
"RUF200",
]
[tool.ruff.lint.per-file-ignores]
"*/tests/**.py" = ["PLR2004", "S101", "TID252"]
[lint.flake8-tidy-imports]
ban-relative-imports = "all"