-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
77 lines (65 loc) · 1.76 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
[project]
name = "git-twigs"
authors = [
{ name = "Paco Sevilla", email = "[email protected]" }, # trunk-ignore(cspell)
]
urls = { Home = "https://github.com/paco-sevilla/git-twigs" }
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.10"
dynamic = ["description", "version"]
dependencies = [
# Please keep in alphabetical order!
"click ~=8.1.7",
"pygit2 ~=1.14.1",
]
[project.optional-dependencies]
dev = [
# Please keep in alphabetical order!
"flit ~=3.9.0",
"pytest ~=8.1.1",
"pytest-dependency ~=0.6.0",
]
[project.scripts]
git-twigs = "git_twigs.cli:main"
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[tool.flit.sdist]
include = ["git_twigs/"]
[tool.mypy]
python_version = "3.10"
mypy_path = "$MYPY_CONFIG_FILE_DIR"
explicit_package_bases = true
warn_return_any = true
disallow_untyped_defs = true
[tool.pylint.format]
max-line-length = 120
[tool.pytest.ini_options]
pythonpath = ["."]
python_functions = "test_*"
python_classes = "Test*"
addopts = "--import-mode=importlib"
required_plugins = ["pytest-dependency"]
automark_dependency = true
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"SIM103", # https://docs.astral.sh/ruff/rules/needless-bool/: Explicit bools can be more readable than conditions
]
per-file-ignores = { "**/tests/*" = [
"INP001", # https://docs.astral.sh/ruff/rules/implicit-namespace-package/: Tests don't need a `__init__.py`
"S101", # https://docs.astral.sh/ruff/rules/assert/: Allow `assert` statements in tests
] }
preview = true
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.pylint]
max-args = 10
max-positional-args = 4
[tool.yapf]
based_on_style = "google"
column_limit = 120
indent_width = 4