-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
125 lines (109 loc) · 3.11 KB
/
pyproject.toml
File metadata and controls
125 lines (109 loc) · 3.11 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
# See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "cmk-dev-site"
dynamic = ["version"] # will-be-updated-automatically
description = "Easily Install Checkmk"
readme = "README.md"
license = "GPL-3.0-only"
license-files = ["LICEN[CS]E"]
requires-python = ">=3.11,<4.0"
keywords = ["cmk", "checkmk", "site", "monitoring"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: Unix",
"Programming Language :: Python :: 3",
"Topic :: Software Development",
"Topic :: Software Development :: Build Tools",
]
dependencies = [
"requests",
"checkmk-dev-tools>=0.10.1,<1",
"pyjwt[crypto]",
"fastapi", # absolute minimum fastapi
"uvicorn", # ASGI worker
"python-multipart>=0.0.20", # needed for form data
]
[dependency-groups]
dev = [
"pyright>=1.1.400",
"pytest>=8.3.4",
"ruff>=0.9.6",
"twine>=6.1.0,<7",
"snippets2changelog>=1.6.0,<2",
"types-requests>=2.32.4.20250809",
]
[project.scripts]
cmk-dev-install = "cmk_dev_site.cmk_dev_install:main"
cmk-dev-site = "cmk_dev_site.cmk_dev_site:main"
cmk-dev-install-site = "cmk_dev_site.cmk_dev_install_site:main"
cmk-dev-site-mock-auth = "cmk_dev_site.saas.oidc_service:run"
[project.urls]
Repository = "https://github.com/Checkmk/cmk-dev-site"
Changelog = "https://github.com/Checkmk/cmk-dev-site/blob/CHANGE_ME_I_AM_A_CHANGELOG/changelog.md"
[tool.hatch.version]
path = "cmk_dev_site/version.py"
# https://hatch.pypa.io/1.13/config/build/#vcs
# Bazel artifacts are symlinks that cause build errors, so exclude them
# version.py is gitignored but must be included in the package
[tool.hatch.build.targets.sdist]
only-include = ["cmk_dev_site", "tests"]
exclude = [
"bazel-*",
]
force-include = { "cmk_dev_site/version.py" = "cmk_dev_site/version.py" }
[tool.hatch.build.targets.wheel]
packages = ["cmk_dev_site"]
force-include = { "cmk_dev_site/version.py" = "cmk_dev_site/version.py" }
[tool.ruff]
# Base configuration
line-length = 100
target-version = "py311"
# Enable automatic fixes
fix = true
# Enable recommended rules
lint.select = [
"F", # Pyflakes
"E", # Pycodestyle errors
"W", # Pycodestyle warnings
"UP", # Pyupgrade
"I", # Isort
"SIM", # flake8-simplify
]
# Additional rules to enable
lint.extend-select = [
"RUF", # Ruff-specific rules
]
# Files/directories to exclude
exclude = [
".git",
"__pycache__",
".venv",
"dist",
"build",
]
[tool.pyright]
# Base configuration
pythonVersion = "3.11"
pythonPlatform = "All"
typeCheckingMode = "strict"
venvPath = "."
venv = ".venv"
# Strict checks configuration
strict = [
"checkUntypedFunctionSignatures",
"reportMissingParameterType",
"reportMissingTypeStubs",
]
# Additional checks
reportUnusedImport = true
reportPrivateUsage = "warning"
reportUnusedVariable = "warning"
reportUnusedExpression = "warning"
reportUnnecessaryTypeIgnoreComment = true
# Execution environment
include = ["cmk_dev_site", "tests"]