refactor: restructure into src/gitea_ci package
Some checks failed
CI / Lint & Check (push) Failing after 12s

Split monolithic gitea-ci.py (3068 lines) into modular package:
- src/gitea_ci/config.py: configuration, constants
- src/gitea_ci/api.py: GiteaAPI class
- src/gitea_ci/formatters.py: output formatting
- src/gitea_ci/utils.py: utilities, validation
- src/gitea_ci/commands/: command implementations
- src/gitea_ci/cli.py: argument parser, dispatch

gitea-ci.py now thin wrapper (16 lines)
This commit is contained in:
Username
2026-01-18 18:59:22 +01:00
parent c8b85e8977
commit 8d05e90160
17 changed files with 3345 additions and 3062 deletions

View File

@@ -28,10 +28,15 @@ jobs:
run: pip install -q ruff
- name: Syntax check
run: python -m py_compile gitea-ci.py style.py
run: |
python -m py_compile gitea-ci.py style.py
python -m py_compile src/gitea_ci/*.py src/gitea_ci/commands/*.py
- name: Lint
run: ruff check gitea-ci.py style.py
run: ruff check gitea-ci.py style.py src/gitea_ci/
- name: Test --help
run: python gitea-ci.py --help
- name: Test import
run: python -c "from src.gitea_ci import Config, GiteaAPI, __version__; print(f'v{__version__}')"