Skip to content

Commit 4f7d856

Browse files
committed
feat(ci): add more package linting tools
1 parent 36e93da commit 4f7d856

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

.github/workflows/setup.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,15 @@ jobs:
2525
- name: build sdist
2626
run: uv build
2727
- name: twine
28-
run: twine check dist/*
28+
run: uvx twine check dist/*
29+
- name: pydistcheck
30+
run: uvx pydistcheck --inspect dist/*
31+
- name: pyroma
32+
run: uvx pyroma dist/*.tar.gz
33+
- name: check-wheel-contents
34+
run: uvx check-wheel-contents dist/*.whl
35+
- name: check-manifest
36+
run: uvx check-manifest -v
2937

3038
- uses: actions/upload-artifact@v4
3139
with:

pyproject.toml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ lint = [
5050
"pre-commit==4.0.1"
5151
]
5252
test = [
53-
"twine==6.0.1"
5453
]
5554
types = [
5655
"mypy==1.13.0",
@@ -73,6 +72,29 @@ Twitter = "https://twitter.com/WeblateOrg"
7372
[tool.black]
7473
target-version = ['py39']
7574

75+
[tool.check-manifest]
76+
ignore = [
77+
"LICENSES/*",
78+
"json/*",
79+
"modules/**",
80+
"scripts/*",
81+
".reuse/dep5",
82+
"languages-po/*",
83+
"*.csv",
84+
"Makefile",
85+
".gitmodules",
86+
"scripts/*",
87+
"*.toml",
88+
"*.yml",
89+
"*.yaml",
90+
"*.json",
91+
".editorconfig",
92+
".weblate"
93+
]
94+
ignore-bad-ideas = [
95+
"modules/gettext/gettext-tools/tests/*.mo"
96+
]
97+
7698
[tool.isort]
7799
profile = "black"
78100

0 commit comments

Comments
 (0)