-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
126 lines (114 loc) · 3.2 KB
/
Copy pathpyproject.toml
File metadata and controls
126 lines (114 loc) · 3.2 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
[project]
name = "gh-toolkit"
version = "0.27.0"
description = "GitHub repository portfolio management and presentation toolkit"
readme = "README.md"
authors = [
{ name = "Michael Borck", email = "michael.borck@curtin.edu.au" }
]
requires-python = ">=3.12"
dependencies = [
"requests>=2.31.0",
"anthropic>=0.25.0",
"pyyaml>=6.0",
"typer>=0.12.0",
"rich>=13.0.0",
"pathlib-mate>=1.0.0",
"mistune>=3.0.0",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Version Control :: Git",
]
keywords = ["github", "repository", "management", "portfolio", "cli"]
[project.urls]
Homepage = "https://github.com/michael-borck/gh-toolkit"
Repository = "https://github.com/michael-borck/gh-toolkit"
Issues = "https://github.com/michael-borck/gh-toolkit/issues"
[project.optional-dependencies]
tui = [
"textual>=0.50.0",
]
[project.scripts]
gh-toolkit = "gh_toolkit.cli:app"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
target-version = "py312"
line-length = 88
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.basedpyright]
pythonVersion = "3.12"
typeCheckingMode = "strict"
# The TUI is an optional extra built on textual, whose dynamic widget/reactive
# APIs don't satisfy strict mode. Excluded until it gets a dedicated typing
# pass; everything else in src/ is checked strictly.
exclude = ["src/gh_toolkit/tui"]
reportMissingImports = true
reportMissingTypeStubs = false
reportUnusedImport = true
reportUnusedVariable = true
reportUnnecessaryTypeIgnoreComment = true
reportPrivateUsage = true
reportConstantRedefinition = true
reportIncompatibleMethodOverride = true
reportIncompatibleVariableOverride = true
reportUninitializedInstanceVariable = true
strictListInference = true
strictDictionaryInference = true
strictSetInference = true
[tool.pytest.ini_options]
minversion = "8.0"
addopts = "-ra -q --strict-markers --strict-config"
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
[tool.coverage.run]
source = ["src"]
omit = ["*/tests/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
]
[dependency-groups]
dev = [
"ruff>=0.4.0",
"basedpyright>=1.12.0",
"pytest>=8.0.0",
"pytest-cov>=6.2.1",
"pytest-mock>=3.14.1",
"responses>=0.25.7",
"pre-commit>=3.7.0",
"build>=1.2.2.post1",
"twine>=6.1.0",
]