-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
112 lines (99 loc) · 2.39 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
[tool.poetry]
name = "poetry-homebrew-formula"
version = "0.3.0"
description = "Generate Homebrew formulae for Poetry projects"
authors = [
"Jan Willhaus <[email protected]>",
]
maintainers = [
"Jan Willhaus <[email protected]>",
]
readme = "README.md"
license = "MIT"
repository = "https://github.com/janw/poetry-homebrew-formula"
include = [
"poetry_brew/templates/*.j2",
]
[tool.poetry.dependencies]
python = "^3.10"
poetry = "^1.7"
jinja2 = "^3.1.2"
[tool.poetry.group.dev.dependencies]
ruff = ">=0.1.14,<0.5.0"
mypy = "^1.8.0"
rich-codex = "^1.2.7"
commitizen = "^3.13.0"
pre-commit = "^3.6.0"
ipdb = "^0.13.13"
[tool.poetry.group.tests.dependencies]
pytest = ">=7.4.4,<9.0.0"
pytest-cov = "^4.1.0"
pytest-responses = "^0.5.1"
[tool.poetry.plugins."poetry.application.plugin"]
homebrew-formula = "poetry_homebrew_formula.plugin:PoetryHomebrewFormulaPlugin"
[tool.commitizen]
version_scheme = "semver"
version_provider = "poetry"
version_files = [
"pyproject.toml:version = ",
"poetry_homebrew_formula/__init__.py",
]
annotated_tag = true
tag_format = "v$version"
update_changelog_on_bump = true
changelog_merge_prerelease = true
major_version_zero = true
gpg_sign = true
[tool.ruff]
line-length = 120
target-version = "py310"
extend-select = [
"I", # isort
"B", # bugbear
"A", # builtins
"ISC", # implicit-str-concat
"Q", # quotes
"TID", # tidy-imports
"C4", # comprehensions
"SIM", # simplify
"C90", # mccabe
]
ignore = [
"SIM108", # if-else-block-instead-of-if-exp
"ISC001", # single-line-implicit-string-concatenation
]
[tool.ruff.format]
quote-style = "double"
[tool.ruff.mccabe]
max-complexity = 8
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests",]
addopts = "--cov --cov-report term --no-cov-on-fail"
[tool.coverage.run]
branch = true
source = [
"poetry_homebrew_formula",
]
[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:"
]
precision = 2
show_missing = true
[tool.mypy]
disallow_untyped_defs = true
disallow_any_generics = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
strict_optional = true
strict_equality = true
check_untyped_defs = true
no_implicit_reexport = true
packages = ["poetry_homebrew_formula", "tests"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"