-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (87 loc) · 2.62 KB
/
Copy pathpyproject.toml
File metadata and controls
104 lines (87 loc) · 2.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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "python-splunk-logging"
version = "1.0.0"
description = "Python logging module for logging json formatted log messages to a HTTP Event Collector (HEC)."
authors = [
{ name = "Alexander Baker", email = "alexb@splunk.com" },
{ name = "Eric Li", email = "ericli@splunk.com"}
]
requires-python = ">=3.9"
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE"]
keywords = ["cisco", "splunk", "logging", "http", "hec", "json"]
classifiers = [
"Programming Language :: Python :: 3",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: Apache Software License",
"Typing :: Typed",
"Natural Language :: English",
]
dependencies = [
"httpx>=0.28.1",
"python-dateutil>=2.9.0",
]
[dependency-groups]
dev = [
"black>=25.1.0",
"isort>=6.0.1",
"python-semantic-release>=10.4.1",
"respx>=0.22.0",
"ruff>=0.12.4",
"tox>=4.27.0",
"tox-uv>=1.26.1",
]
[project.urls]
repository = "https://github.com/splunk/python-splunk-logging"
[tool.hatch.build.targets.wheel]
packages = ["splunk_logging"]
[tool.black]
line-length = 120
target-version = ["py39"]
[tool.isort]
line_length = 120
profile = "black"
[tool.ruff]
target-version = "py39"
line-length = 120
extend-exclude = ["test"]
[tool.ruff.lint]
select = ["F", "E", "N", "A", "C4", "ISC", "PT", "Q", "RET", "SLF", "ARG", "PTH", "RUF"]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "double"
[tool.semantic_release]
version_toml = ["pyproject.toml:project.version", "splunk_logging/__init__.py:__version__"]
commit_parser = "conventional"
commit_message = "chore(release): update version to ${version} [skip ci]"
build_command = """
uv lock --upgrade-package "$PACKAGE_NAME"
uv build
"""
[tool.semantic_release.remote]
type = "github"
[tool.semantic_release.publish]
dist_glob_patterns = ["dist/*"]
upload_to_vcs_release = true
[tool.tox]
requires = ["tox>=4"]
env_list = ["lint", "format", "test"]
[tool.tox.env_run_base]
dependency_groups = ["dev"]
[tool.tox.env.lint]
description = "run ruff linter and check formatting"
skip_install = true
commands = [["ruff", "check"], ["isort", "--check", "."], ["black", "--check", "."]]
[tool.tox.env.format]
description = "format python files with black & isort"
skip_install = true
commands = [["isort", "."], ["black", "."]]
[tool.tox.env.test]
description = "run unit tests"
commands = [["python", "-m", "unittest", "discover", "-s", "test"]]