Skip to content

Commit 5ff75bf

Browse files
authored
Add package linters (#616)
Signed-off-by: Mihai Criveti <[email protected]>
1 parent e87727d commit 5ff75bf

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.github/workflows/python-package.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,24 @@ jobs:
4242
- name: Build distributions
4343
run: make dist # Uses the Makefile's `dist` rule
4444

45-
# 5️⃣ Upload built artifacts so they can be downloaded from the run page
45+
# 5️⃣ Install package quality tools
46+
- name: Install package linters
47+
run: |
48+
python3 -m pip install twine check-manifest pyroma
49+
50+
# 6️⃣ Validate wheel/sdist metadata
51+
- name: Check distribution metadata (twine)
52+
run: twine check dist/*
53+
54+
# 7️⃣ Verify MANIFEST.in completeness
55+
- name: Check manifest (check-manifest)
56+
run: check-manifest
57+
58+
# 8️⃣ Assess package quality
59+
- name: Check package quality (pyroma)
60+
run: pyroma -d .
61+
62+
# 9️⃣ Upload built artifacts so they can be downloaded from the run page
4663
- name: Upload distributions
4764
uses: actions/upload-artifact@v4
4865
with:

MANIFEST.in

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ include *.sh
2727
include *.txt
2828

2929
# 3️⃣ Tooling/lint configuration dot-files (explicit so they're not lost)
30+
include .env.make
31+
include .interrogaterc
32+
include .jshintrc
33+
include whitesource.config
3034
include .darglint
3135
include .dockerignore
3236
include .flake8
@@ -54,7 +58,7 @@ recursive-include alembic *.py
5458
# 5️⃣ (Optional) include MKDocs-based docs in the sdist
5559
# graft docs
5660

57-
# 6️⃣ Never publish caches, compiled or build outputs
61+
# 6️⃣ Never publish caches, compiled or build outputs, deployment, agent_runtimes, etc.
5862
global-exclude __pycache__ *.py[cod] *.so *.dylib
5963
prune build
6064
prune dist
@@ -63,3 +67,8 @@ prune *.egg-info
6367
prune charts
6468
prune k8s
6569
prune .devcontainer
70+
71+
# Exclude deployment, mcp-servers and agent_runtimes
72+
prune deployment
73+
prune mcp-servers
74+
prune agent_runtimes

0 commit comments

Comments
 (0)