-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
127 lines (110 loc) · 2.72 KB
/
Copy pathpyproject.toml
File metadata and controls
127 lines (110 loc) · 2.72 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
[project]
name = "sshgen"
version = "0.9.0"
description = "SSH config generator based on Ansible hosts yaml file"
license = "Unlicense"
authors = [
{ name = "pythoninja", email = "pythoninja@users.noreply.github.com" },
]
readme = "README.md"
keywords = ["ssh", "config", "ansible", "cli", "generator"]
requires-python = ">=3.12"
dependencies = [
"ruamel-yaml (>=0.17.31,<0.19.0)",
"cyclopts (>=2.4.2,<4.0.0)"
]
[project.urls]
"Changelog" = "https://github.com/pythoninja/sshgen/blob/master/CHANGELOG.md"
repository = "https://github.com/pythoninja/sshgen"
[project.scripts]
sshgen = "sshgen.cli:app.meta"
[tool.poetry.group.dev.dependencies]
ruff = ">=0.9.0"
pre-commit = ">=3.6.2,<5.0.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.tbump]
github_url = "https://github.com/pythoninja/sshgen"
[tool.tbump.version]
current = "0.9.0"
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
'''
[tool.tbump.git]
message_template = "chore(release): v{new_version}"
tag_template = "v{new_version}"
[[tool.tbump.file]]
src = "README.md"
search = "Current version: v{current_version}"
[[tool.tbump.file]]
src = "README.md"
search = "sshgen@v"
[[tool.tbump.file]]
src = "sshgen/__init__.py"
search = "__version__ = \"{current_version}\""
[[tool.tbump.before_commit]]
name = "Bump poetry"
cmd = "poetry version {new_version}"
[[tool.tbump.before_commit]]
name = "Generate Changelog"
cmd = "git cliff --tag {new_version} --output CHANGELOG.md"
[tool.ruff]
exclude = []
line-length = 120
target-version = "py312"
preview = true
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"C90", # mccabe
"E", # pycodestyle - error
"F", # Pyflakes
"G", # flake8-logging-format
"N", # pep8-naming
"Q", # flake8-quotes
"S", # flake8-bandit
"W", # pycodestyle - warning
"EM", # flake8-errmsg
"ANN", # flake8-annotations
"ARG", # flake8-unused-arguments
"BLE", # flake8-blind-except
"COM", # flake8-commas
"FURB", # refurb
"LOG", # flake8-logging
"ISC", # flake8-implicit-str-concat
"PL", # Pylint
"PT", # flake8-pytest-style
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PTH", # flake8-use-pathlib
"PERF", # Perflint
"RUF", # ruff-specific
"SLF", # flake8-self
"SIM", # flake8-simplify
"T20", # flake8-print
"TD", # flake8-todos
"TID", # flake8-tidy-imports
"TRY", # tryceratops
"UP", # pyupgrade
"YTT", # flake8-2020
]
ignore = [
"UP007",
"ANN204",
"ARG001",
"COM812",
"ISC001"
]
[tool.ruff.lint.pylint]
max-args = 5
[tool.ruff.lint.flake8-quotes]
avoid-escape = false
[tool.ruff.format]
quote-style = "double"