-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
136 lines (115 loc) · 3.62 KB
/
Copy pathpyproject.toml
File metadata and controls
136 lines (115 loc) · 3.62 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
[project]
name = "azure-functions-validation"
description = "Validation and serialization layer for Azure Functions Python v2 programming model"
keywords = ["azure-functions", "azure", "python", "v2", "validation", "pydantic", "serialization", "serverless"]
authors = [{ name = "Yeongseon Choe", email = "yeongseon.choe@gmail.com" }]
license = { text = "MIT" }
readme = "README.md"
requires-python = ">=3.10,<3.15"
dynamic = ["version"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = [
"azure-functions",
"pydantic>=2.0,<3.0",
]
[project.urls]
Homepage = "https://yeongseon.github.io/azure-functions-validation-python/"
Documentation = "https://yeongseon.github.io/azure-functions-validation-python/"
Repository = "https://github.com/yeongseon/azure-functions-validation-python"
Issues = "https://github.com/yeongseon/azure-functions-validation-python/issues"
[project.optional-dependencies]
dev = [
"bandit==1.9.4",
"build",
"coverage",
"git-cliff",
"hatch",
"mypy==2.3.0",
"pre-commit",
"pytest",
"pytest-anyio",
"pytest-cov",
"ruff==0.15.22",
"requests",
"types-requests",
]
docs = [
"mkdocs<2.0",
"mkdocs-material<10.0",
"mkdocstrings[python]<2.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build]
sources = ["src"]
[tool.hatch.build.targets.wheel]
[tool.hatch.version]
path = "src/azure_functions_validation/__init__.py"
[tool.hatch.publish.index]
default = "pypi"
[tool.hatch.publish.index.repos.pypi]
url = "https://upload.pypi.org/legacy/"
[tool.hatch.publish.index.repos.test]
url = "https://test.pypi.org/legacy/"
[tool.hatch.envs.default]
python = "3.10"
features = ["dev", "docs"]
[tool.hatch.envs.default.scripts]
format = "ruff format src tests"
style = "ruff check src tests"
typecheck = "mypy src tests"
lint = "hatch run style && hatch run typecheck"
test = "pytest -v tests"
cov = "pytest --cov-report=term-missing --cov-report=html --cov-report=xml tests/"
e2e-azure = "pytest -v -m e2e tests/e2e/"
docs = "mkdocs serve"
precommit = "pre-commit run --all-files"
precommit-install = "pre-commit install"
security = "python -m bandit -r src"
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I"]
fixable = ["ALL"]
[tool.ruff.lint.isort]
known-first-party = ["azure_functions_validation"]
force-sort-within-sections = true
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
[tool.mypy]
python_version = "3.10"
strict = true
ignore_missing_imports = true
show_error_codes = true
pretty = true
[[tool.mypy.overrides]]
module = "examples.*"
follow_imports = "skip"
[tool.pytest.ini_options]
addopts = "--cov=src/azure_functions_validation --cov-report=xml --cov-report=term-missing -ra -q -m 'not e2e'"
testpaths = ["tests"]
pythonpath = ["src", ".", "examples", "tests/_test_app"]
markers = ["e2e: real Azure end-to-end tests (require E2E_BASE_URL)"]
[tool.coverage.run]
branch = true
source = ["src/azure_functions_validation"]
[tool.coverage.report]
show_missing = true
fail_under = 95
skip_covered = true
[tool.bandit]
exclude_dirs = ["tests"]