Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
102 lines (96 loc) · 3.74 KB
/
Copy pathpyproject.toml
File metadata and controls
102 lines (96 loc) · 3.74 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
[project]
name = "generic-agentic-workflows"
version = "0.1.0"
description = "Reusable GitHub Actions workflows for agentic pull-request and issue feedback using OpenCode."
readme = "README.md"
requires-python = ">=3.12"
license = { text = "MIT" }
authors = [{ name = "Michael Park" }]
# The runtime scripts are intentionally dependency-free so they can run on a
# GitHub Actions runner without installing packages. Development tooling is
# declared in the optional `dev` extra below.
dependencies = []
[project.optional-dependencies]
dev = [
"ruff>=0.16.2",
"pyyaml>=6.0",
]
# Documentation build extra. Mirrors the Canonical Sphinx Stack 2.0
# requirements (https://github.com/canonical/sphinx-stack/tree/2.0) while
# excluding the Vale/rst2html prose-linting toolchain, which is not used by
# this project's frozen documentation set.
docs = [
"canonical-sphinx~=0.6",
"myst-parser~=4.0",
"sphinx-autobuild",
"sphinx-design==0.6.1",
"sphinx-notfound-page~=1.1",
"sphinx-reredirects==0.1.6",
"sphinx-tabs~=3.5",
"sphinxcontrib-jquery~=4.1",
"sphinxext-opengraph~=0.13",
"sphinx-rerediraffe>=0.0.3,<1.0.0",
"sphinx-config-options~=0.1",
"sphinx-contributor-listing~=0.1",
"sphinx-filtered-toctree~=0.1",
"sphinx-related-links~=0.1",
"sphinx-roles~=0.1",
"sphinx-terminal~=1.0",
"sphinx-ubuntu-images~=0.1",
"sphinx-youtube-links~=0.1",
"packaging~=26.1",
"sphinxcontrib-svg2pdfconverter[CairoSVG]~=2.1",
"sphinx-last-updated-by-git~=0.3",
"sphinx-sitemap~=2.9",
"sphinx-llm~=0.4",
]
[tool.uv]
package = false
# ---------------------------------------------------------------------------
# Ruff: linting and formatting
# ---------------------------------------------------------------------------
[tool.ruff]
line-length = 100
target-version = "py312"
extend-exclude = [
".opencode",
".venv",
".ruff_cache",
]
[tool.ruff.lint]
# A focused, stable rule set. The codebase predates this config and contains
# compact one-line statements and long lines that would require a large
# separate cleanup pass; style rules that would force mass reformatting
# (E501 line-length, E701/E702 multiple-statements) are not enforced yet.
select = [
"F", # Pyflakes (unused imports/variables, undefined names, etc.)
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"RUF", # ruff-specific
]
ignore = [
"E501", # line too long (cleanup pass planned)
"E701", # multiple statements on one line (colon) - existing compact style
"E702", # multiple statements on one line (semicolon) - existing compact style
"EXE001", # shebang present but file not executable (scripts run via python)
"SIM102", # collapsible-if (readability)
"SIM105", # suppressible-exception (contextlib.suppress not always clearer)
"SIM108", # if-else-block-instead-of-if-exp (readability)
"SIM117", # nested with-statements (readability over collapse)
"B007", # unused-loop-control-variable (renaming would hurt readability)
"B905", # zip-without-explicit-strict (added in 3.10, existing code is fine)
"TRY004", # type-check without TypeError (style preference)
"BLE001", # blind-except (intentional in CLI runners)
"PLW1510", # subprocess-run-without-check (checked explicitly)
"RUF012", # mutable class default (dataclass field pattern)
"RUF002", # ambiguous-unicode-character-docstring (intentional en-dash etc.)
"RUF059", # unused unpacked variable
"F402", # import shadowed by loop var (test fixtures)
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"F841", # unused variable (test mocks often assigned for clarity)
"F401", # unused import (test fixtures import for side effects)
]