Skip to content

Commit dbda2ce

Browse files
[pre-commit.ci] pre-commit autoupdate (#174)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.6 → v0.6.3](astral-sh/ruff-pre-commit@v0.5.6...v0.6.3) * Fix coverage cache in GHA --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: S. Co1 <[email protected]>
1 parent 4dbda91 commit dbda2ce

File tree

6 files changed

+261
-222
lines changed

6 files changed

+261
-222
lines changed

.github/workflows/lint_test.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
- name: Install Poetry for caching
1818
run: pipx install poetry
1919
- name: Set up Python
20-
uses: actions/setup-python@v4
20+
uses: actions/setup-python@v5
2121
with:
2222
python-version: '3.x'
2323
cache: 'poetry'
@@ -42,19 +42,19 @@ jobs:
4242
fail-fast: false
4343

4444
steps:
45-
- uses: actions/checkout@v3
45+
- uses: actions/checkout@v4
4646
- name: Install Poetry for caching
4747
run: pipx install poetry
4848

4949
- name: Set up (release) Python ${{ matrix.python-version }}
50-
uses: actions/setup-python@v4
50+
uses: actions/setup-python@v5
5151
if: "!endsWith(matrix.python-version, '-dev')"
5252
with:
5353
python-version: ${{ matrix.python-version }}
5454
cache: 'poetry'
5555

5656
- name: Set up (deadsnakes) Python ${{ matrix.python-version }}
57-
uses: deadsnakes/action@v3.0.0
57+
uses: deadsnakes/action@v3.1.0
5858
if: endsWith(matrix.python-version, '-dev')
5959
with:
6060
python-version: ${{ matrix.python-version }}
@@ -68,24 +68,26 @@ jobs:
6868
run: tox
6969

7070
- name: Cache coverage for ${{ matrix.python-version }}
71-
uses: actions/upload-artifact@v3
71+
uses: actions/upload-artifact@v4
7272
with:
7373
name: cov_py${{ matrix.python-version }}
7474
path: .coverage
75+
if-no-files-found: error
76+
include-hidden-files: true
7577

7678
combine-cov:
7779
runs-on: ubuntu-latest
7880
needs: test
7981

8082
steps:
81-
- uses: actions/checkout@v3
83+
- uses: actions/checkout@v4
8284
- name: Set up Python
83-
uses: actions/setup-python@v4
85+
uses: actions/setup-python@v5
8486
with:
8587
python-version: '3.x'
8688

8789
- name: Pull coverage workflow artifacts
88-
uses: actions/download-artifact@v3
90+
uses: actions/download-artifact@v4
8991
with:
9092
path: cov_cache/
9193

@@ -103,7 +105,7 @@ jobs:
103105
coverage html
104106
105107
- name: Publish cov HTML
106-
uses: actions/upload-artifact@v3
108+
uses: actions/upload-artifact@v4
107109
with:
108110
path: htmlcov/
109111
name: cov_report_html

.github/workflows/pypi_release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
- name: Set up Python
15-
uses: actions/setup-python@v4
15+
uses: actions/setup-python@v5
1616
with:
1717
python-version: '3.x'
1818

@@ -23,7 +23,7 @@ jobs:
2323
poetry build
2424
2525
- name: Publish to PyPI
26-
uses: pypa/gh-action-pypi-publish@release/v1.5
26+
uses: pypa/gh-action-pypi-publish@release/v1.9
2727
with:
2828
user: __token__
2929
password: ${{ secrets.pypi_api_token }}

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ repos:
2727
- id: python-check-blanket-type-ignore
2828
exclude: "test_type_ignore.py"
2929
- repo: https://github.com/astral-sh/ruff-pre-commit
30-
rev: v0.5.6
30+
rev: v0.6.3
3131
hooks:
3232
- id: ruff
3333
- repo: local

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ cog.out(
3131
]]] -->
3232
```bash
3333
$ flake8 --version
34-
7.0.0 (flake8-annotations: 3.1.1, mccabe: 0.7.0, pycodestyle: 2.11.1, pyflakes: 3.2.0) CPython 3.12.3 on Darwin
34+
7.1.1 (flake8-annotations: 3.1.1, mccabe: 0.7.0, pycodestyle: 2.12.1, pyflakes: 3.2.0) CPython 3.12.4 on Darwin
3535
```
3636
<!-- [[[end]]] -->
3737

0 commit comments

Comments
 (0)