-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (83 loc) · 1.94 KB
/
pyproject.toml
File metadata and controls
100 lines (83 loc) · 1.94 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
[project]
name = "picofun"
authors = [
{name = "Dave Hall", email = "skwashd@gmail.com"},
]
description = "PicoFun AWS Lambda generator"
requires-python = ">=3.13"
dependencies = [
"black==26.3.1", # ruff can't be invoked from code without shelling out
"jinja2==3.1.6",
"pydantic==2.12.5",
"PyYAML==6.0.3",
"requests==2.33.0",
"tomlkit==0.14.0",
"typer==0.24.1",
]
license = "BSD-3-Clause"
license-files = ["LICENSE"]
readme = "README.md"
dynamic = ["version"]
[dependency-groups]
dev = [
"coverage==7.13.5",
"pytest==9.0.2",
"pytest-mock==3.15.1",
"ruff==0.15.8",
"ty==0.0.26",
]
build = [
"build==1.4.2",
"twine==6.2.0",
]
[build-system]
requires = [
"hatchling==1.29.0",
"hatch-vcs==0.5.0"
]
build-backend = "hatchling.build"
[project.scripts]
picofun = "picofun:__main__.main"
[tool.hatch.version]
source = "vcs"
[tool.coverage.report]
show_missing = true
omit = [
".venv/*"
]
[tool.coverage.run]
cover_pylib = false
[tool.black]
line-length = 88
target-version = ['py313']
include = '\.pyi?$'
exclude = '''
(
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| \.nox
)
'''
[tool.ty.src]
# Examples are ignored so we don't need to install their dependencies.
exclude = ["examples/", "output/"]
[tool.ruff.lint]
# Rules listed at https://docs.astral.sh/ruff/rules/
select = ["B", "D", "E", "F", "G", "I", "N", "S", "W", "ANN" ,"BLE", "C4", "C90", "DTZ", "ERA", "PLW", "PT", "RET", "RUF", "SIM", "TRY", "UP"]
ignore = ["D203", "D211", "D212", "E501", "F403", "F405", "S603"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["B", "D", "E", "F", "G", "I", "N", "S", "W", "ANN" ,"BLE", "C4", "C90", "DTZ", "ERA", "PLW", "PT", "RET", "RUF", "SIM", "TRY", "UP"]
unfixable = []
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "S108"]
"output" = ["ALL"]
"examples/swagger-meraki/app.py" = ["I001"] # Supress CI/CD failure