fix: extend flake8 ignores for star imports and CadQuery patterns #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Light CI - runs on dev branch | |
| # Fast feedback loop with linting and quick tests | |
| name: CI | |
| on: | |
| push: | |
| branches: [dev] | |
| pull_request: | |
| branches: [dev] | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install linting tools | |
| run: pip install black flake8 | |
| - name: Check formatting with black | |
| run: black --check --diff microfinity/ tests/ | |
| - name: Lint with flake8 | |
| run: flake8 microfinity/ tests/ --max-line-length=120 --extend-ignore=E203,W503,F401,F403,F405,E402,F821,W293,W605,F841 | |
| test-quick: | |
| name: Quick Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| pip install --upgrade pip | |
| pip install cadquery-ocp cadquery cqkit | |
| pip install pytest pytest-cov | |
| pip install -e . | |
| - name: Run quick tests | |
| run: pytest -x -v --ignore=tests/test_rbox.py | |
| env: | |
| SKIP_TEST_RBOX: "1" |