-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
130 lines (106 loc) · 3.56 KB
/
pyproject.toml
File metadata and controls
130 lines (106 loc) · 3.56 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
[project]
description = ""
name = "porringer"
license = { text = "MIT" }
authors = [{ name = "Synodic Software", email = "contact@synodic.software" }]
readme = "README.md"
dynamic = ["version"]
requires-python = ">=3.14"
dependencies = [
"typer[all]>=0.24.1",
"pydantic>=2.12.5",
"platformdirs>=4.9.6",
"userpath>=1.9.2",
"packaging>=26.0",
"aiohttp>=3.13.5",
]
[project.urls]
homepage = "https://github.com/synodic/porringer"
repository = "https://github.com/synodic/porringer"
[dependency-groups]
lint = ["ruff>=0.15.10", "pyrefly>=0.60.2"]
test = [
"pytest>=9.0.3",
"pytest-cov>=7.1.0",
"pytest-mock>=3.15.1",
"pytest-asyncio>=1.3.0",
]
docs = ["zensical>=0.0.32"]
[project.entry-points."porringer.environment"]
pip = "porringer.plugin.pip.plugin:PIPEnvironment"
pipx = "porringer.plugin.pipx.plugin:PIPXEnvironment"
winget = "porringer.plugin.winget.plugin:WingetEnvironment"
uv = "porringer.plugin.uv.plugin:UvEnvironment"
npm = "porringer.plugin.npm.plugin:NPMEnvironment"
pnpm = "porringer.plugin.pnpm.plugin:PNPMEnvironment"
bun = "porringer.plugin.bun.plugin:BunEnvironment"
deno = "porringer.plugin.deno.plugin:DenoEnvironment"
pim = "porringer.plugin.pim.plugin:PIMEnvironment"
pyenv = "porringer.plugin.pyenv.plugin:PyenvEnvironment"
brew = "porringer.plugin.brew.plugin:BrewEnvironment"
apt = "porringer.plugin.apt.plugin:APTEnvironment"
[project.entry-points."porringer.project_environment"]
uv-project = "porringer.plugin.uv_project.plugin:UvProjectEnvironment"
pdm = "porringer.plugin.pdm.plugin:PDMEnvironment"
poetry = "porringer.plugin.poetry.plugin:PoetryEnvironment"
npm-project = "porringer.plugin.npm_project.plugin:NPMProjectEnvironment"
pnpm-project = "porringer.plugin.pnpm_project.plugin:PNPMProjectEnvironment"
yarn-project = "porringer.plugin.yarn_project.plugin:YarnProjectEnvironment"
bun-project = "porringer.plugin.bun_project.plugin:BunProjectEnvironment"
deno-project = "porringer.plugin.deno_project.plugin:DenoProjectEnvironment"
[project.entry-points."porringer.scm"]
git = "porringer.plugin.git.plugin:GitScm"
[project.scripts]
porringer = "porringer.console.entry:app"
[tool.pytest.ini_options]
asyncio_mode = "auto"
log_cli = true
testpaths = ["tests"]
markers = [
"fresh_plugins: invalidate the plugin discovery cache before this test",
"mock_packages: use a cached package list instead of real subprocess calls",
"bare_environment: simulate a bare system with only the primary tool on PATH",
]
[tool.ruff]
line-length = 120
preview = true
[tool.ruff.lint]
ignore = ["D206", "D300", "D415", "E111", "E114", "E117"]
select = [
"D", # pydocstyle
"F", # Pyflakes
"I", # isort
"PL", # pylint
"UP", # pyupgrade
"E", # pycodestyle
"B", # flake8-bugbear
"SIM", # flake8-simplify
"PT", # flake8-pytest-style
]
[tool.ruff.lint.pylint]
max-args = 10
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
docstring-code-format = true
indent-style = "space"
quote-style = "single"
[tool.coverage.report]
skip_empty = true
[tool.pyrefly]
project-excludes = ["examples"]
[tool.pdm]
plugins = ["-e file:///${PROJECT_ROOT}"]
[tool.pdm.version]
source = "scm"
[tool.pdm.scripts]
analyze = "ruff check"
format = "ruff format"
lint = { composite = ["analyze", "format", "type-check"] }
test = "pytest --cov=porringer --verbose tests"
type-check = "pyrefly check"
generate = "zensical build --clean"
serve = "zensical serve"
[build-system]
build-backend = "pdm.backend"
requires = ["pdm.backend"]