Skip to content
Merged
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
21 changes: 19 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
Expand Down Expand Up @@ -124,7 +123,6 @@ venv.bak/
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

Expand Down Expand Up @@ -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
27 changes: 22 additions & 5 deletions {{cookiecutter.project_name}}/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -53,8 +57,10 @@ jobs:

steps:
- uses: actions/checkout@v6
{%- if cookiecutter.vcs %}
with:
fetch-depth: 0
{%- endif %}

- uses: actions/setup-python@v6
with:
Expand Down Expand Up @@ -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 %}
6 changes: 2 additions & 4 deletions {{cookiecutter.project_name}}/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
Expand Down Expand Up @@ -147,7 +146,6 @@ venv.bak/
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

Expand All @@ -171,8 +169,8 @@ cython_debug/
src/*/_version.py


# ruff
.ruff_cache/
# Caches
.*_cache/

# OS specific stuff
.DS_Store
Expand Down
Loading