Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
164 lines (145 loc) · 4.67 KB
/
Copy pathpyproject.toml
File metadata and controls
164 lines (145 loc) · 4.67 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
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
[build-system]
requires = ["maturin>=1.8,<2.0"]
build-backend = "maturin"
[project]
name = "depwise"
description = "A fast, comprehensive dependency analyzer for Python to detect unused, missing, and optional dependencies."
requires-python = ">=3.9"
readme = "README.md"
authors = [
{ name = "Zac Bowling", email = "zac@zacbowling.com" }
]
maintainers = [
{ name = "Zac Bowling", email = "zac@zacbowling.com" }
]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Framework :: Pytest",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Rust",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Version Control :: Git",
"Topic :: System :: Software Distribution",
"Typing :: Typed",
]
dynamic = ["version"]
license = { text = "MIT" }
keywords = [
"dependencies",
"dependency analysis",
"package management",
"python",
"conda",
"rust",
"tool",
"requirements",
"pyproject",
"static-analysis",
"linter",
"lint",
"pre-commit",
"optional dependencies",
"dependency checker",
"development tools",
"code quality",
"dependency management",
]
[project.urls]
Homepage = "https://github.com/zbowling/depwise"
Repository = "https://github.com/zbowling/depwise.git"
Issues = "https://github.com/zbowling/depwise/issues"
Changelog = "https://github.com/zbowling/depwise/blob/master/CHANGELOG.md"
[tool.maturin]
manifest-path = "crates/depwise/Cargo.toml"
module-name = "depwise"
bindings = "bin"
strip = true
[tool.pixi.workspace]
channels = ["https://repo.prefix.dev/pixi-build-backends", "conda-forge"]
platforms = ["osx-arm64", "linux-64", "linux-aarch64", "win-64"]
[tool.pixi.pypi-dependencies]
depwise = { path = ".", editable = true }
[tool.pixi.dependencies]
# Needed for the citation
cargo-nextest = ">=0.9.78"
cffconvert = ">=2.0.0,<3"
tbump = ">=6.9"
mypy = ">=1.15"
rust = ">=1.83.0"
[tool.pixi.feature.lint.dependencies]
actionlint = ">=1.7.4,<2"
pre-commit = ">=3.7.1,<4"
pre-commit-hooks = ">=4.6.0,<5"
prettier = ">=3.4.2,<4"
ruff = ">=0.4.8,<0.5"
shellcheck = ">=0.10.0,<0.11"
taplo = ">=0.9.1,<0.10"
typos = ">=1.23.1,<2"
[tool.pixi.feature.lint.tasks]
actionlint = { cmd = "actionlint", env = { SHELLCHECK_OPTS = "-e SC2086,SC2129" } }
cargo-clippy = "cargo clippy --all-targets --workspace -- -D warnings"
cargo-fmt = "cargo fmt --all"
check-openssl = "python tests/scripts/check-openssl.py"
lint = "pre-commit run --all-files --hook-stage=manual"
pre-commit-install = "pre-commit install --install-hooks"
pre-commit-run = "pre-commit run --all-files"
prettier-fmt = { cmd = "prettier --write" }
ruff-format = "ruff format --force-exclude"
ruff-lint = "ruff check --fix --exit-non-zero-on-fix --force-exclude"
toml-format = { cmd = "taplo fmt", env = { RUST_LOG = "warn" } }
toml-lint = "taplo lint --verbose **/pixi.toml"
typecheck-python = "mypy"
typos = "typos --write-changes --force-exclude"
[tool.pixi.tasks]
[tool.pixi.environments]
default = { features = ["lint"], solve-group = "default" }
lint = { features = ["lint"], no-default-feature = true, solve-group = "default" }
# TODO: add support for pixi build
#[tool.pixi.package.build]
#backend = { name = "pixi-build-python", version = "0.1.*" }
[tool.tbump]
# Uncomment this if your project is hosted on GitHub:
# github_url = "https://github.com/<user or organization>/<project>/"
[tool.tbump.version]
current = "0.1.0-alpha.2"
# Example of a semver regexp.
# Make sure this matches current_version before
# using tbump
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
(\-
(?P<extra>.+)
)?
'''
[tool.tbump.git]
message_template = "chore: Bump to {new_version}"
tag_template = "v{new_version}"
# For each file to patch, add a [[tool.tbump.file]] config
# section containing the path of the file, relative to the
# tbump.toml location.
[[tool.tbump.file]]
search = '^version = "{current_version}"'
src = "Cargo.toml"
# You can specify a list of commands to
# run after the files have been patched
# and before the git commit is made
# [[tool.tbump.before_commit]]
# name = "check changelog"
# cmd = "grep -q {new_version} Changelog.rst"
# Or run some commands after the git tag and the branch
# have been pushed:
# [[tool.tbump.after_push]]
# name = "publish"
# cmd = "./publish.sh"