diff --git a/.gitignore b/.gitignore index d44bf565..279972d0 100644 --- a/.gitignore +++ b/.gitignore @@ -48,7 +48,6 @@ coverage.xml *.cover *.py,cover .hypothesis/ -.pytest_cache/ cover/ # Translations @@ -124,7 +123,6 @@ venv.bak/ /site # mypy -.mypy_cache/ .dmypy.json dmypy.json @@ -165,3 +163,22 @@ _readthedocs # Jekyll build artifacts vendor/ .bundle/ + +# General +.DS_Store + +# Caches +.*_cache/ + +# OS specific stuff +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db + +# Common editor files +*~ +*.swp diff --git a/{{cookiecutter.project_name}}/.github/workflows/ci.yml b/{{cookiecutter.project_name}}/.github/workflows/ci.yml index 6af04278..ed9e0749 100644 --- a/{{cookiecutter.project_name}}/.github/workflows/ci.yml +++ b/{{cookiecutter.project_name}}/.github/workflows/ci.yml @@ -18,29 +18,33 @@ env: FORCE_COLOR: 3 jobs: - pre-commit: + lint: name: Format runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 + {%- if cookiecutter.vcs %} with: fetch-depth: 0 + {%- endif %} + - uses: actions/setup-python@v6 with: python-version: "3.x" - uses: astral-sh/setup-uv@v7 - - uses: pre-commit/action@v3.0.1 - with: - extra_args: --hook-stage manual --all-files + - uses: j178/prek-action@v2 + - name: Run Pylint run: uvx nox -s pylint -- --output-format=github checks: name: {% raw %}Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }}{% endraw %} runs-on: {% raw %}${{ matrix.runs-on }}{% endraw %} - needs: [pre-commit] + {%- if cookiecutter.__type == "compiled" %} + needs: [lint] + {%- endif %} strategy: fail-fast: false matrix: @@ -53,8 +57,10 @@ jobs: steps: - uses: actions/checkout@v6 + {%- if cookiecutter.vcs %} with: fetch-depth: 0 + {%- endif %} - uses: actions/setup-python@v6 with: @@ -83,3 +89,14 @@ jobs: uses: codecov/codecov-action@v5 with: token: {% raw %}${{ secrets.CODECOV_TOKEN }}{% endraw %} + + pass: + if: always() + needs: [lint, checks] + runs-on: ubuntu-slim + timeout-minutes: 2 + steps: + - name: Decide whether the needed jobs succeeded or failed + uses: re-actors/alls-green@release/v1 + with: + jobs: {% raw %}${{ toJSON(needs) }}{% endraw %} diff --git a/{{cookiecutter.project_name}}/.gitignore b/{{cookiecutter.project_name}}/.gitignore index ab80d43c..a0eee367 100644 --- a/{{cookiecutter.project_name}}/.gitignore +++ b/{{cookiecutter.project_name}}/.gitignore @@ -48,7 +48,6 @@ coverage.xml *.cover *.py,cover .hypothesis/ -.pytest_cache/ cover/ # Translations @@ -147,7 +146,6 @@ venv.bak/ /site # mypy -.mypy_cache/ .dmypy.json dmypy.json @@ -171,8 +169,8 @@ cython_debug/ src/*/_version.py -# ruff -.ruff_cache/ +# Caches +.*_cache/ # OS specific stuff .DS_Store