-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
66 lines (58 loc) · 1.37 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
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "begone"
authors = [{name = "Daniel Rocha", email = "daniel@rocha.io"}]
dynamic = ["version", "description"]
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"pyyaml>=6.0.2",
"typer>=0.12.5",
]
[project.scripts]
begone-convert = "begone.convert:run"
[tool.ruff]
preview = true
[tool.ruff.lint]
extend-select = [
"I", # isort
"UP", # pyupgrade
"S", # flake8-bandit
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"ISC", # flake8-implicit-str-concat
"FIX", # flake8-fixme
"FA", # flake8-future-annotations
"SIM", # flake8-simplify
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101", # asserts
"D100", # undocumented-public-module
"D103", # undocumented-public-function
"D104", # undocumented-public-package
]
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = true
disallow_any_unimported = true
disallow_untyped_defs = true
no_implicit_optional = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_ignores = true
warn_unused_configs = true
[tool.uv]
dev-dependencies = [
"flit>=3.10.1",
"mypy>=1.12.0",
"ruff>=0.7.0",
"types-pyyaml>=6.0.12.20240917",
]