This repository was archived by the owner on Feb 18, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
158 lines (144 loc) · 4.5 KB
/
pyproject.toml
File metadata and controls
158 lines (144 loc) · 4.5 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "sysup"
version = "0.10.0"
description = "システムと各種パッケージマネージャを統合的に更新するツール"
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
authors = [
{ name = "scottlz0310", email = "scottlz0310@users.noreply.github.com" },
]
keywords = ["system", "update", "package-manager", "automation"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: System :: Systems Administration",
]
dependencies = [
"click>=8.1.0",
"rich>=13.0.0",
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
]
[dependency-groups]
dev = [
"ruff>=0.1.0",
"basedpyright>=1.24.0",
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"pytest-asyncio>=0.21.0",
"pytest-timeout>=2.2.0",
"pre-commit>=3.5.0",
"bandit[toml]>=1.7.0",
"typing-extensions>=4.12.0; python_version<'3.12'",
"pexpect>=4.9.0; sys_platform != 'win32'",
]
[project.scripts]
sysup = "sysup.cli:main"
[project.urls]
Homepage = "https://github.com/scottlz0310/sysup"
Repository = "https://github.com/scottlz0310/sysup"
Issues = "https://github.com/scottlz0310/sysup/issues"
[tool.ruff]
target-version = "py311"
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"C90", # mccabe complexity
"T20", # flake8-print
"N", # pep8-naming
"D", # pydocstyle
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # line-too-long (handled by formatter)
"C901", # complex-structure
"D203", # one-blank-line-before-class (incompatible with D211)
"D213", # multi-line-summary-second-line (incompatible with D212)
"RUF001", # ambiguous-unicode-character-string (日本語の全角記号を許可)
"RUF002", # ambiguous-unicode-character-docstring (日本語の全角記号を許可)
"RUF003", # ambiguous-unicode-character-comment (日本語の全角記号を許可)
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["D"] # テストファイルはDocstring不要
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true
[tool.basedpyright]
pythonVersion = "3.11"
venvPath = "."
venv = ".venv"
typeCheckingMode = "all"
reportUnusedVariable = true
reportUnusedImport = true
reportMissingTypeStubs = false
reportUnnecessaryTypeIgnoreComment = true
reportUnnecessaryCast = true
reportImplicitStringConcatenation = true
reportMissingSuperCall = true
reportPropertyTypeMismatch = true
reportUninitializedInstanceVariable = true
reportUnnecessaryContains = true
reportUnnecessaryIsInstance = true
reportUnusedCallResult = false # CLI tools often ignore return values
reportDeprecated = true
reportIncompatibleMethodOverride = true
reportIncompatibleVariableOverride = true
reportInconsistentConstructor = true
reportOverlappingOverload = true
reportPossiblyUnboundVariable = true
reportAny = false # Dynamic config/JSON parsing unavoidably uses Any
reportExplicitAny = false # Dynamic config/JSON parsing requires explicit Any
include = ["src"]
exclude = ["**/__pycache__", "**/.venv", "src/sysup/_typing_compat.py"]
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-ra -q --strict-markers --strict-config"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
[tool.coverage.run]
source = ["src"]
branch = true
[tool.coverage.report]
# 段階的厳格化: prototype=閾値なし, staging=60%, production=80%
fail_under = 80 # v0.4.0で有効化(現在87.14%達成済み)
precision = 2
show_missing = true
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
[tool.bandit]
exclude_dirs = ["tests", "archive"]
skips = ["B101", "B601"]