-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
165 lines (146 loc) · 3.14 KB
/
pyproject.toml
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project.urls]
Homepage = "https://github.com/macro128/pdm-conda"
Changelog = "https://github.com/macro128/pdm-conda/blob/main/CHANGELOG.md"
[project.entry-points.pdm]
conda = "pdm_conda:main"
[project]
name = "pdm-conda"
description = "A PDM plugin to resolve/install/uninstall project dependencies with Conda"
requires-python = ">=3.10,<3.13"
authors = [
{ name = "Marcos Pastorini" }
]
keywords = ["pdm", "plugin", "conda"]
readme = "README.md"
license = { text = "MIT" }
dynamic = ["version"]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
]
dependencies = [
"pdm==2.16.1",
"typing-extensions>=4.10.0",
"httpx>=0.27.0",
]
[tool.pdm.dev-dependencies]
dev = [
"pytest>=8.0.2",
"pytest-mock>=3.12.0",
"pytest-cov>=4.1.0",
"pytest-random-num>=1.0.13",
"pytest-order>=1.2.0",
"pytest-httpx>=0.30.0",
]
[tool.pdm]
distribution = true
plugins = [
"pdm-backend",
]
[tool.pdm.version]
source = "file"
path = "src/pdm_conda/__init__.py"
[tool.pdm.build]
package-dir = "src"
includes = ["src", "data/*.json"]
excludes = ["tests"]
[tool.pdm.scripts]
test = "pytest --cov=src/ tests/{args} --cov-report xml --cov-report term"
fix-report = "python scripts/fix_report.py"
test-cov = { composite = ["test {args}", "fix-report"], keep_going = true }
[tool.pytest.ini_options]
addopts = "--random-order -x -m \"not manual_only\""
filterwarnings = [
"ignore::pytest.PytestReturnNotNoneWarning"
]
[tool.mypy]
python_version = "3.10"
pretty = true
check_untyped_defs = true
[tool.docformatter]
recursive = true
style = "sphinx"
wrap-summaries = 120
wrap-descriptions = 120
[tool.ruff]
line-length = 120
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
extend-select = [
# sorting imports
"I",
"ICN",
# async checks
"ASYNC",
# bugbear
"B",
# builtins shadowing
"A",
# trailing commas
"COM",
# comprehensions
"C4",
# debugger trace
"T10",
# package init
"INP",
# string concat
"ISC",
# misc fixes
"PIE",
# pytest
"PT",
# raise
"RSE",
# return
"RET",
# simplify
"SIM",
# future annotation
"FA",
# prefer pathlib
"PTH",
# pyupgrade
"UP",
]
extend-safe-fixes = ["UP", "I", "C4"]
ignore = [
# Too broad except
"E722",
# Missing docstring in __init__
"D107",
# Missing trailing comma
"COM812",
# Add leading underscore
"PT004",
# Non PEP604
"UP038",
]
[tool.ruff.lint.isort]
split-on-trailing-comma = false
known-local-folder = ["src", "tests", "pdm-conda"]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
parametrize-names-type = "csv"
parametrize-values-row-type = "list"
[tool.ruff.lint.per-file-ignores]
# all init files
"__init__.py" = [
# ignore not used imports
"F401",
# ignore import with wildcard
"F403",
]
# all tests
"**/tests/*" = [
# Use of assert detected
"S101",
"D"
]