-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
66 lines (56 loc) · 1.31 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
[tool.poetry]
name = "repo-scaffold"
version = "0.3.0"
description = "shawn deng repo temple project"
authors = ["shawndeng <[email protected]>"]
license = "MIT"
readme = "README.md"
include = [
"template-python/**/*"
]
[tool.poetry.dependencies]
python = "^3.12"
cookiecutter = "^2.6.0"
click = "^8.1.8"
[tool.poetry.group.dev.dependencies]
ruff = "^0.8.4"
nox = "^2024.10.9"
pytest = "^8.3.4"
pytest-mock = "^3.14.0"
pytest-cov = "^6.0.0"
commitizen = "^4.1.0"
[tool.poetry.scripts]
repo-scaffold = "repo_scaffold.cli:cli"
[tool.ruff]
line-length = 120
include = ["pyproject.toml", "repo_scaffold/*.py"]
exclude = ["template-python/**/*"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D" # pydocstyle
]
ignore = [
"W191", # indentation contains tabs
"D401" # imperative mood
]
[tool.ruff.lint.isort]
force-single-line = true
lines-after-imports = 2
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "$version"
version_scheme = "semver2"
version_provider = "poetry"
update_changelog_on_bump = true
major_version_zero = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"