fix: resolve CI linting failures
- Removed unused imports (pathlib.Path, Schema, EnvVar, Optional) - Fixed f-strings without placeholders in generator.py and validators.py - Removed unused variables in generator.py - Updated CI workflow to use correct project name (envschema)
This commit is contained in:
@@ -21,18 +21,28 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pip install -e ".[dev]"
|
pip install -e ".[dev]"
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run linting
|
||||||
run: pytest tests/unit/ -v
|
run: ruff check envschema/
|
||||||
|
|
||||||
- name: Run integration tests
|
- name: Run tests
|
||||||
run: pytest tests/integration/ -v
|
run: pytest tests/ -v
|
||||||
|
|
||||||
- name: Check code formatting
|
build:
|
||||||
run: |
|
runs-on: ubuntu-latest
|
||||||
pip install ruff
|
needs: test
|
||||||
ruff check envschema/
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Upload coverage
|
- name: Set up Python
|
||||||
run: |
|
uses: actions/setup-python@v5
|
||||||
pip install pytest-cov
|
with:
|
||||||
pytest --cov=envschema --cov-report=term-missing
|
python-version: '3.11'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pip install -e .
|
||||||
|
|
||||||
|
- name: Verify import
|
||||||
|
run: python -c "import envschema; print(envschema.__version__)"
|
||||||
|
|
||||||
|
- name: Verify CLI
|
||||||
|
run: envschema --version
|
||||||
Reference in New Issue
Block a user