-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
148 lines (129 loc) · 3.56 KB
/
pyproject.toml
File metadata and controls
148 lines (129 loc) · 3.56 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
[project]
name = "git-pulsar"
version = "0.16.0"
description = "Automated, paranoid git backups for students and casual coding."
readme = "README.md"
authors = [
{ email = "[email protected]" }
]
requires-python = ">=3.12"
dependencies = [
"rich>=14.2.0",
]
license = {file = "LICENSE"}
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
]
[project.urls]
Repository = "https://github.com/jacksonfergusondev/git-pulsar"
Issues = "https://github.com/jacksonfergusondev/git-pulsar/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project.scripts]
git-pulsar = "git_pulsar.cli:main"
git-pulsar-daemon = "git_pulsar.daemon:main"
[dependency-groups]
dev = [
"bump-my-version>=1.2.6",
"hypothesis>=6.150.2",
"mypy>=1.19.1",
"pre-commit>=4.5.1",
"pytest>=9.0.2",
"pytest-cov>=7.0.0",
"pytest-mock>=3.15.1",
"ruff>=0.14.13",
]
[tool.ruff]
target-version = "py312"
line-length = 88
indent-width = 4
exclude = [
".git",
".mypy_cache",
".ruff_cache",
".venv",
"build",
"dist",
]
[tool.ruff.lint]
# E, W: Standard linting
# F: Pyflakes (errors)
# I: Isort (imports)
# B: Bugbear (catches subtle bugs like mutable default args)
# UP: Pyupgrade (modernizes syntax, e.g. types)
# SIM: Simplify (refactors logic)
# T20: Print (prevents accidentally leaving print() in CLI tools)
# PT: Pytest style
# C4: Comprehensions (better list/dict comp usage)
# D: Docstrings
select = ["E", "F", "I", "B", "UP", "SIM", "T20", "PT", "C4", "D"]
ignore = [
"E501",
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D107", # Missing docstring in __init__
]
# Allow ignored variables (e.g. for unpacking)
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
known-first-party = ["git_pulsar"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = ["T201", "D"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.mypy]
python_version = "3.12"
pretty = true
show_error_codes = true
show_error_context = true
warn_return_any = true
warn_unused_configs = true
check_untyped_defs = true
disallow_untyped_defs = true
ignore_missing_imports = false
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
[tool.pytest.ini_options]
addopts = "--strict-markers"
testpaths = ["tests"]
pythonpath = ["."]
[tool.coverage.run]
source = ["src/git_pulsar"]
omit = ["src/git_pulsar/service.py"]
branch = true
[tool.coverage.report]
omit = ["src/git_pulsar/**/__init__.py"]
show_missing = true
[tool.bumpversion]
current_version = "0.16.0"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
search = "{current_version}"
replace = "{new_version}"
regex = false
ignore_missing_version = false
tag = false
sign_tags = false
tag_name = "v{new_version}"
tag_message = "Bump version: {current_version} → {new_version}"
allow_dirty = false
commit = true
message = "chore: bump version {current_version} → {new_version}"
commit_args = ""
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'