Debian Codegraph @

pyproject.toml

raw symbols SCIP
1 [build-system]
2 requires = ["setuptools", "wheel", "setuptools-rust"]
3 build-backend = "setuptools.build_meta"
4
5 [project]
6 name = "vcsgraph"
7 description = "Graph algorithms for version control systems"
8 readme = "README.md"
9 requires-python = ">=3.10"
10 license-files = ["COPYING.txt"]
11 dynamic = ["version"]
12
13 [project.optional-dependencies]
14 dev = [
15 "mypy==2.1.0",
16 "ruff==0.15.18"
17 ]
18
19 [tool.setuptools]
20 packages = ["vcsgraph"]
21
22 [[tool.setuptools-rust.ext-modules]]
23 target = "vcsgraph._graph_rs"
24 path = "crates/graph-py/Cargo.toml"
25 binding = "PyO3"
26
27 [tool.setuptools.dynamic]
28 version = {attr = "vcsgraph.__version__"}
29
30 [tool.mypy]
31 ignore_missing_imports = true
32
33 [tool.ruff]
34 extend-exclude = ["lib", "bin"]
35
36 [tool.ruff.lint]
37 select = [
38 "ANN", # annotations
39 "D", # pydocstyle
40 "E", # pycodestyle
41 "F", # pyflakes
42 "N", # naming
43 "B", # bugbear
44 "I", # isort
45 "S", # bandit
46 "TCH", # typecheck
47 "INT", # gettext
48 "SIM", # simplify
49 "C4", # comprehensions
50 "UP", # pyupgrade
51 "RUF", # ruf-specific
52 ]
53 ignore = [
54 "ANN001",
55 "ANN002",
56 "ANN003", # missing-type-arg
57 "ANN201",
58 "ANN202",
59 "ANN204",
60 "ANN205",
61 "ANN206",
62 "D205", # 1 blank line required between summary line and description
63 "D417", # Missing argument descriptions in the docstring
64 "F821", # undefined-name
65 "E501", # line too long
66 "D402", # Missing blank line after last section
67 "E402", # module level import not at top of file
68 "E741", # ambiguous variable name
69 "F405", # name may be undefined, or defined from star imports
70 "N801", # Naming convention violation: invalid constant name
71 "N802", # Naming convention violation: invalid variable name
72 "N804", # Naming convention violation: invalid lowercase variable name
73 "N806", # Naming convention violation: invalid lowercase function name
74 "N818", # Naming convention violation: invalid argument name
75 "N999", # Naming convention violation: invalid module name
76
77 "S602", # subprocess with shell=True
78 "S603", # check for execution of untrusted input
79 "S105", # "hardcoded password"; false positives on "pwd"
80 "S106", # "hardcoded password"; false positives on "pwd"
81 "S110", # "consider logging exception"
82
83 "S317", # use defusedxml
84
85 # This triggers for docstrings that uses __doc__
86 "D104", # Missing docstring in public package
87
88 "RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
89 "RUF005", # Consider iterable concatenation instead of list concatenation
90 "RUF015", # Prefer next() of single slice access
91
92 "SIM102", # Use a single `if` statement instead of nested `if` statements
93 "SIM105", # Use `contextlib.suppress
94 "SIM108", # Use ternary operator
95 "SIM114", # Combine `if` branches using logical `or` operator
96 "SIM115", # Use context handler for opening files
97 ]
98
99 [tool.ruff.lint.extend-per-file-ignores]
100 # Ignore docstring requirements for test files
101 "vcsgraph/tests/*.py" = ["D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107"]
102
103 [tool.ruff.lint.pydocstyle]
104 convention = "google"
105
106 [tool.cibuildwheel.linux]
107 skip = "*-musllinux_*"
108 archs = ["auto", "aarch64"]