-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
99 lines (91 loc) · 3.19 KB
/
Copy pathpyproject.toml
File metadata and controls
99 lines (91 loc) · 3.19 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
[build-system]
requires = ["setuptools==83.0.0", "wheel==0.47.0"]
build-backend = "setuptools.build_meta"
[project]
name = "acp-gh"
version = "1.7.0"
description = "Automatic Commit Pusher (acp) - CLI tool to create GitHub PRs from staged changes in a single command"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "GPLv2"}
authors = [
{name = "Victor Baranov", email = "bar.victor.2002@gmail.com"}
]
keywords = [
"git",
"github",
"gh",
"github-cli",
"pull-request",
"pr",
"cli",
"automation",
"developer-tools",
"productivity",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Version Control :: Git",
"Topic :: Utilities",
]
dependencies = [
"argcomplete>=3.6.0",
]
[project.urls]
Homepage = "https://github.com/vbvictor/acp"
Repository = "https://github.com/vbvictor/acp"
Issues = "https://github.com/vbvictor/acp/issues"
Changelog = "https://github.com/vbvictor/acp/releases"
[project.optional-dependencies]
dev = [
"pytest==9.1.1",
"pytest-cov==7.1.0",
"ruff==0.16.0",
"black==26.5.1",
"yamllint==1.38.0",
"zizmor==1.28.0; python_version>='3.10'",
"shellcheck-py==0.11.0.1",
"mypy==2.3.0",
"build==1.5.0",
"twine==6.2.0",
"pymarkdownlnt==0.9.39",
]
[project.scripts]
acp = "acp:main"
[tool.setuptools]
py-modules = ["acp"]
[tool.ruff]
target-version = "py310"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"E501", # line length - handled by black
"D", # docstrings - not every function needs one
"ANN", # type annotations - use mypy instead, ruff only checks presence not correctness
"S", # security - this CLI tool is a subprocess wrapper, not a web app
"T201", # print() - this is a CLI tool, print is the UI
"COM812", # trailing commas - conflicts with black formatter
"FBT", # boolean args - would require enums/separate functions for simple internal helpers
"ARG", # unused args - some exist for API consistency (e.g. quiet param)
"PLR0912", # too many branches - orchestration functions are inherently complex
"PLR0913", # too many arguments - functions like create_pr() and merge_pr() legitimately need many params
"PLR0915", # too many statements - main() dispatch logic
"PLR0911", # too many return statements - test helper side_effect functions
"PLR0917", # too many positional arguments - we use many arguments
"PLR2004", # magic value comparison - test assertions like `assert exc.value.code == 1`
"BLE001", # blind except - intentional in error recovery to switch back to original branch
"C901", # complexity - orchestration functions are inherently complex
"CPY001", # missing copyright notice - we do not use this
]
[tool.mypy]
python_version = "3.10"
strict = true