Skip to content

Commit 330baf6

Browse files
committed
Add pre-commit hook to export dependencies to plugin-requirements.txt.
1 parent f502fb4 commit 330baf6

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@ repos:
1616
- id: ruff
1717
args: [--extend-select, I, --fix]
1818
- id: ruff-format
19+
- repo: https://github.com/python-poetry/poetry-plugin-export
20+
rev: "1.9.0"
21+
hooks:
22+
- id: poetry-export
23+
args:
24+
[
25+
"--without=dev",
26+
"-f",
27+
"requirements.txt",
28+
"-o",
29+
"tmp-requirements.txt",
30+
]
1931

2032
ci:
2133
autofix_commit_msg: "[pre-commit.ci] Auto fixes from pre-commit.com hooks."

poetry.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ dynamic = ["dependencies"]
1313
[tool.poetry]
1414
package-mode = false
1515

16+
[tool.poetry.requires-plugins]
17+
poetry-plugin-export = ">=1.8"
18+
1619
[tool.poetry.dependencies]
1720
psutil = "^5.8.0"
1821
vdf = "3.4"
1922
lzokay = "1.1.5"
20-
pyqt6 = "6.7.0"
2123

2224
[tool.poetry.group.dev.dependencies]
2325
mobase-stubs = "^2.5.2"

0 commit comments

Comments
 (0)