-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
114 lines (101 loc) · 2.81 KB
/
Copy pathpyproject.toml
File metadata and controls
114 lines (101 loc) · 2.81 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
111
112
113
114
[project]
name = "ghfanout"
version = "0.4.0"
description = "Configuration-as-Code for many GitHub repositories: manage shared config files in one place and fan them out as pull requests, using a Kustomize-like base/overlay structure"
readme = "README.md"
authors = [
{ name = "Seiya Kojima" }
]
requires-python = ">=3.11"
license = "MIT"
license-files = ["LICENSE"]
classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"jinja2>=3.1.6",
"pathspec>=0.12.1",
"pygithub>=2.9.1",
"pyyaml>=6.0.3",
"typer>=0.26.8",
]
[project.urls]
Homepage = "https://github.com/seiya-koji/ghfanout"
Documentation = "https://seiya-koji.github.io/ghfanout/"
Repository = "https://github.com/seiya-koji/ghfanout"
[project.scripts]
ghfanout = "ghfanout.cli:app"
[build-system]
requires = ["uv_build>=0.10.0,<0.11.0"]
build-backend = "uv_build"
[dependency-groups]
dev = [
"coverage>=7.15.0",
"detect-secrets>=1.5.0",
"mypy>=2.1.0",
"pre-commit>=4.6.0",
"pytest>=9.1.1",
"ruff>=0.15.20",
"types-pyyaml>=6.0.12.20260518",
]
docs = [
"mkdocs-material>=9.7.6",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.coverage.run]
# Measure tests too, so test code that never runs is caught as uncovered
source = ["src", "tests"]
relative_files = true
[tool.coverage.report]
show_missing = true
fail_under = 100
[tool.ruff]
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"D", # pydocstyle (docstring checks)
"PL", # pylint equivalent
"RUF", # ruff-specific rules
"S", # flake8-bandit (security)
"C4", # flake8-comprehensions
"PT", # flake8-pytest-style
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"N", # pep8-naming
"A", # flake8-builtins
"DTZ", # flake8-datetimez
"TID", # flake8-tidy-imports
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"src/ghfanout/cli.py" = [
# Typer commands take ctx + one argument per CLI option, so the argument
# count naturally exceeds PLR0913's limit; it does not signal a refactor here.
"PLR0913",
]
"tests/**" = [
"S101", # assert is fundamental to tests
"D1", # test docstrings are unnecessary (descriptive test names serve that purpose)
"PLR2004", # literal comparisons are natural in tests
"S105", # dummy tokens
]
[tool.mypy]
strict = true
python_version = "3.11"
files = ["src", "tests"]
[[tool.mypy.overrides]]
module = ["github", "github.*"]
follow_untyped_imports = true