-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
50 lines (44 loc) · 1.32 KB
/
Copy pathpyproject.toml
File metadata and controls
50 lines (44 loc) · 1.32 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
[project]
name = "safety-critical-rust-coding-guidelines"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12,<3.13"
dependencies = [
"builder",
"tqdm",
"pypandoc",
"sphinx>=8.2.3",
"sphinx-autobuild>=2024.10.3",
"sphinx-needs>=5.1.0",
"sphinx-rtd-theme>=3.0.2",
"requests>=2.31.0",
"pyyaml>=6.0.1",
]
[tool.uv.workspace]
members = ["builder"]
[tool.uv.sources]
builder = { workspace = true }
[tool.ruff]
lint.select = [
"F", # Pyflakes rules
"W", # PyCodeStyle warnings
"E", # PyCodeStyle errors
"I", # Sort Imports
"TID", # Some good import practices
"C4", # Catch incorrect use of comprehensions, dict, list, etc
]
# Remove or reduce ignores to catch more issues
lint.ignore = [
"E501", # Ignore long lines, bc we use them frequently while composing .rst templates
"W293", # Ignore white spaces in blank lines
"W291", # Ignore Trailing white lines
"E402", # Ignore "Imports must be at the top of the file" enforcement bc `auto-pr-helper.py` needs it
"C401", # Ignore `Unnecessary generator` checks, further tests are needed in fls_checks.py
]
[tool.ruff.lint.flake8-comprehensions]
allow-dict-calls-with-keyword-arguments = true
[dependency-groups]
dev = [
"ruff>=0.12.3",
]