-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (78 loc) · 2.21 KB
/
Copy pathpyproject.toml
File metadata and controls
90 lines (78 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
[build-system]
requires = ["uv_build>=0.9.27,<0.10.0"]
build-backend = "uv_build"
[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",
"coding-guidelines-ext",
"tqdm",
"pypandoc",
"sphinx>=8.2.3",
"sphinx-autobuild>=2024.10.3",
"sphinx-needs>=5.1.0",
"sphinx-rtd-theme>=3.0.2",
"requests>=2.32.4",
"pyyaml>=6.0.1",
]
[project.scripts]
reviewer-bot = "scripts.reviewer_bot:main"
[tool.uv.workspace]
members = ["builder", "exts"]
[tool.uv.sources]
builder = { workspace = true }
coding-guidelines-ext = { workspace = true }
[tool.uv.build-backend]
module-root = ""
module-name = "scripts"
[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 `guideline-from-issue.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
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = [
"--import-mode=importlib",
"-ra",
"--strict-config",
"--strict-markers",
]
markers = [
"integration: filesystem, subprocess, multi-module, or boundary tests",
"contract: workflow, CLI, adapter, or artifact contract tests",
]
filterwarnings = ["error"]
xfail_strict = true
[tool.coverage.run]
branch = true
relative_files = true
source = ["scripts.reviewer_bot", "scripts.reviewer_bot_lib"]
[tool.coverage.report]
show_missing = true
skip_empty = true
[dependency-groups]
dev = [
"pytest>=8.3.0",
"pytest-cov>=5.0.0",
"pytest-mock>=3.14.0",
"ruff>=0.12.3",
]