-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
164 lines (144 loc) · 3.81 KB
/
pyproject.toml
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
159
160
161
162
163
164
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "keyhint"
version = "0.5.2"
description = "Cheat-sheets for shortcuts & commands at your fingertips."
keywords = ["shortcuts", "keybindings", "hints", "helper", "cheatsheet"]
readme = "README.md"
requires-python = ">=3.11"
authors = [{ name = "dynobo", email = "[email protected]" }]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Utilities",
"Intended Audience :: End Users/Desktop",
"Operating System :: POSIX :: Linux",
]
dependencies = ["PyGObject>=3.42.2"]
[project.urls]
Documentation = "https://github.com/dynobo/keyhint#readme"
Issues = "https://github.com/dynobo/keyhint/issues"
Source = "https://github.com/dynobo/keyhint"
[project.scripts]
keyhint = "keyhint.app:main"
[tool.uv]
dev-dependencies = [
"coverage[toml]>=6.5",
"pytest",
"pytest-cov",
"pre-commit",
"coveralls",
"types-toml",
"tbump",
"ruff",
"pip-audit",
"mypy",
"mdformat",
"pygobject-stubs",
]
[tool.ruff]
target-version = "py311"
line-length = 88
exclude = [".venv"]
[tool.ruff.lint]
select = [
"F", # Pyflakes
"E", # pycodestyle
"I", # Isort
"D", # pydocstyle
"W", # warning
"UP", # pyupgrad
"N", # pep8-naming
"C90", # mccabe
"TRY", # tryceratops (exception handling)
"ANN", # flake8-annotations
"S", # flake8-bandits
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"A", # flake8-builtins
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"T20", # flake8-print
"PYI", # flake8-pyi
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RET", # flake8-return
"SIM", # flake8-simplify
"PTH", # flake8-use-pathlib
"G", # flake8-logging-format
"PL", # pylint
"RUF", # meta rules (unused noqa)
"PL", # meta rules (unused noqa)
"PERF", # perflint
]
ignore = [
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D107", # Missing docstring in __init__
"ANN101", # Missing type annotation for `self` in method
"TRY003", # Avoid specifying long messages outside the exception class
"ISC001", # Rule conflicts with ruff's formaatter
]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.per-file-ignores]
"tests/**/*" = ["PLR2004", "PLR0913", "S101", "TID252", "ANN", "D"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
known-first-party = ["keyhint"]
[tool.mypy]
files = ["keyhint/**/*.py", "tests/**/*.py"]
follow_imports = "skip"
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = [
"--durations=5",
"--showlocals",
"--cov",
"--cov-report=xml",
"--cov-report=html",
]
[tool.coverage.run]
source_pkgs = ["keyhint"]
branch = true
parallel = true
omit = []
[tool.mdformat]
wrap = 88
number = true
end_of_line = "keep"
[tool.tbump]
[tool.tbump.version]
current = "0.5.2"
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
((?P<extra>.+))?
'''
[tool.tbump.git]
message_template = "Bump to {new_version}"
tag_template = "v{new_version}"
[[tool.tbump.file]]
src = "pyproject.toml"
search = 'version = "{current_version}"'
[[tool.tbump.file]]
src = "keyhint/__init__.py"
[[tool.tbump.before_commit]]
name = "check changelog"
cmd = "grep -q {new_version} CHANGELOG.md"