-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
128 lines (110 loc) · 3.44 KB
/
Copy pathpyproject.toml
File metadata and controls
128 lines (110 loc) · 3.44 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
[project]
name = "azure-functions-logging"
description = "Developer-friendly logging helpers for Azure Functions Python"
keywords = ["azure-functions", "azure", "python", "v2", "logging", "structured-logging", "json", "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",
]
[project.urls]
Homepage = "https://yeongseon.github.io/azure-functions-logging-python/"
Documentation = "https://yeongseon.github.io/azure-functions-logging-python/"
Repository = "https://github.com/yeongseon/azure-functions-logging-python"
Issues = "https://github.com/yeongseon/azure-functions-logging-python/issues"
[project.optional-dependencies]
dev = [
"bandit==1.9.4",
"bandit[toml]",
"build",
"coverage",
"git-cliff",
"hatch",
"mypy==2.3.0",
"pre-commit",
"pytest",
"pytest-cov",
"ruff==0.16.0",
"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.version]
path = "src/azure_functions_logging/__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.pytest.ini_options]
addopts = "--cov=src/azure_functions_logging --cov-report=xml --cov-report=term-missing -ra -q -m 'not e2e'"
testpaths = ["tests"]
pythonpath = ["src", "."]
markers = ["e2e: real Azure end-to-end tests (require E2E_BASE_URL)"]
[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_logging"]
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.coverage.run]
branch = true
source = ["src/azure_functions_logging"]
[tool.coverage.report]
show_missing = true
fail_under = 95
skip_covered = true
[tool.bandit]
exclude_dirs = ["tests"]