Skip to content
Closed

maj #188

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions .Jules/palette.md

This file was deleted.

40 changes: 3 additions & 37 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: poetry install --no-interaction

- name: Run lint with makefile
run: make lint-fix
run: make lint-check

# ── Type checking ──────────────────────────────────────────────────────────
typecheck:
Expand Down Expand Up @@ -157,42 +157,8 @@ jobs:
- name: Install dependencies
run: poetry install --no-interaction

- name: Validate all plugins structure
run: |
poetry run python -c "
import os, sys, importlib.util
plugins_dir = 'plugins'
errors = []
for name in os.listdir(plugins_dir):
path = os.path.join(plugins_dir, name)
if not os.path.isdir(path): continue
run_py = os.path.join(path, 'run.py')
init_py = os.path.join(path, '__init__.py')
if not os.path.exists(run_py):
errors.append(f'{name}: missing run.py')
continue
if not os.path.exists(init_py):
errors.append(f'{name}: missing __init__.py')
continue
spec = importlib.util.spec_from_file_location(name, run_py)
mod = importlib.util.module_from_spec(spec)
try:
spec.loader.exec_module(mod)
except Exception as e:
errors.append(f'{name}: import error – {e}')
continue
if not hasattr(mod, 'PLUGIN_INFO'):
errors.append(f'{name}: missing PLUGIN_INFO')
if not hasattr(mod, 'Plugin'):
errors.append(f'{name}: missing Plugin class')
if not hasattr(mod, 'router'):
errors.append(f'{name}: missing router')
if errors:
print('Plugin validation FAILED:')
for e in errors: print(' ✗', e)
sys.exit(1)
print(f'All plugins valid ✓')
"
- name: Validate all plugins
run: make validate-plugins

# ── Résumé du CI ───────────────────────────────────────────────────────────
ci-success:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
pip install -r doc/requirements.txt

- name: Build site
run: mkdocs build
run: mkdocs build

- name: Upload artifact (Pages)
uses: actions/upload-pages-artifact@v3
Expand All @@ -72,4 +72,4 @@ jobs:
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4
20 changes: 11 additions & 9 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,22 +83,24 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Check modified plugins have config.yaml
- name: Check modified plugins have plugin.yaml
run: |
MODIFIED=$(git diff --name-only origin/${{ github.base_ref }}...HEAD \
| grep '^plugins/' | cut -d'/' -f1,2 | sort -u)
| grep '^app/' | cut -d'/' -f1,2 | sort -u)

if [ -z "$MODIFIED" ]; then
echo "Aucun plugin modifié."
exit 0
fi

for plugin_dir in $MODIFIED; do
if [ -d "$plugin_dir" ]; then
if [ ! -f "$plugin_dir/config.yaml" ]; then
echo "⚠️ Warning: $plugin_dir is missing config.yaml"
fi
if [ ! -f "$plugin_dir/__init__.py" ]; then
echo "❌ Error: $plugin_dir is missing __init__.py"
if [ ! -f "$plugin_dir/plugin.yaml" ]; then
echo "❌ Error: $plugin_dir is missing plugin.yaml"
exit 1
fi
if [ ! -f "$plugin_dir/run.py" ]; then
echo "❌ Error: $plugin_dir is missing run.py"
if [ ! -d "$plugin_dir/src" ]; then
echo "❌ Error: $plugin_dir is missing src/ directory"
exit 1
fi
echo "✓ $plugin_dir structure OK"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,4 @@ main.py

summaries.json
/IAdocs
scanner_core.cpython-312-x86_64-linux-gnu.so
43 changes: 0 additions & 43 deletions .jules/bolt.md

This file was deleted.

Loading
Loading