-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
136 lines (122 loc) · 3.89 KB
/
Copy pathpyproject.toml
File metadata and controls
136 lines (122 loc) · 3.89 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 = "napt"
version = "0.9.0"
description = "Automates the entire workflow for packaging Windows applications and deploying them to Microsoft Intune"
readme = "README.md"
license = "Apache-2.0"
authors = [
{name = "Roger Cibrian"}
]
keywords = ["intune", "intunewin", "msi", "psadt", "packaging", "windows", "deployment", "automation"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: System :: Software Distribution",
"Topic :: System :: Systems Administration",
]
requires-python = ">=3.11"
dependencies = [
"requests>=2.33",
"pyyaml>=6.0.2",
"jsonpath-ng>=1.6.1",
"beautifulsoup4>=4.14.0",
"azure-identity>=1.25.3",
"msal>=1.35.1",
"msal-extensions>=1.2.0",
# Windows broker (Web Account Manager) for `napt auth login`.
"msal[broker]>=1.35.1; sys_platform == 'win32'",
]
[project.scripts]
napt = "napt.cli.main:main"
[project.urls]
Documentation = "https://rogercibrian.github.io/notapkgtool"
Changelog = "https://rogercibrian.github.io/notapkgtool/changelog/"
Source = "https://github.com/RogerCibrian/notapkgtool"
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
# -----------------------------
# Poetry
# -----------------------------
[tool.poetry]
packages = [{include = "napt"}]
include = [
{path = "napt/build/templates/*.ps1", format = ["sdist", "wheel"]},
]
[tool.poetry.group.dev.dependencies]
pytest = "^9.0.3"
pyright = "^1.1.408"
ruff = "^0.16.5"
black = "^26.3.1"
requests-mock = "^1.12.1"
mkdocs = "^1.6.1"
mkdocs-material = "^9.6.23"
mkdocstrings = "^1.0.6"
mkdocstrings-python = "^2.0.7"
vulture = "^2.16"
# -----------------------------
# Formatting (Black)
# -----------------------------
[tool.black]
line-length = 88
target-version = ["py311"]
# -----------------------------
# Linting (Ruff)
# -----------------------------
[tool.ruff]
exclude = [
".bzr", ".direnv", ".eggs", ".git", ".git-rewrite", ".hg", ".ipynb_checkpoints",
".mypy_cache", ".nox", ".pants.d", ".pyenv", ".pytest_cache", ".pytype", ".ruff_cache",
".svn", ".tox", ".venv", ".vscode", "__pypackages__", "_build", "buck-out", "build",
"dist", "node_modules", "site-packages", "venv",
]
line-length = 88
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP", "D"]
extend-ignore = ["E203", "E501"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"tests/**" = ["D"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
known-first-party = ["napt"]
combine-as-imports = true
force-sort-within-sections = true
# -----------------------------
# Type Checking (Pyright)
# -----------------------------
[tool.pyright]
include = ["napt"]
venvPath = "."
venv = ".venv"
pythonVersion = "3.11"
typeCheckingMode = "standard"
# -----------------------------
# Dead Code (Vulture)
# -----------------------------
[tool.vulture]
# Scan production code only — tests referencing a symbol must never count as
# keeping it alive. Default confidence is intentional: unused functions and
# classes score 60, so any min_confidence above that would miss exactly the
# dead code this check exists to catch. False positives go in
# vulture_whitelist.py, not a higher threshold.
paths = ["napt", "vulture_whitelist.py"]
# -----------------------------
# Pytest
# -----------------------------
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--basetemp=.pytest-tmp"
norecursedirs = [".git", ".tox", "dist", ".eggs", "*.egg", ".venv", "venv"]
markers = [
"integration: Slow tests requiring network and real external dependencies",
]