Skip to content

Commit 8b35677

Browse files
authored
Misc fixes and updates (#24)
* Ignore conflicting ruff lint rules * Make Python 3.9 the minimum version and support Python 3.12 * Bump GitHub Actions versions to latest
1 parent 6e492ea commit 8b35677

File tree

6 files changed

+16
-12
lines changed

6 files changed

+16
-12
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
self-test:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414

15-
- uses: actions/setup-python@v4
15+
- uses: actions/setup-python@v5
1616
with:
1717
python-version: "3.x"
1818

{{cookiecutter.project_slug}}/.github/workflows/docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313

1414
- uses: actions/setup-python@v5
1515
with:
@@ -26,7 +26,7 @@ jobs:
2626
make doc
2727
2828
- name: upload docs artifact
29-
uses: actions/upload-pages-artifact@v1
29+
uses: actions/upload-pages-artifact@v3
3030
with:
3131
path: ./html/
3232

@@ -42,4 +42,4 @@ jobs:
4242
url: ${{ steps.deployment.outputs.page_url }}
4343
steps:
4444
- id: deployment
45-
uses: actions/deploy-pages@v1
45+
uses: actions/deploy-pages@v4

{{cookiecutter.project_slug}}/.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
lint:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414

1515
- uses: actions/setup-python@v5
1616
with:

{{cookiecutter.project_slug}}/.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
name: upload release to PyPI
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2222

2323
- uses: actions/setup-python@v5
2424
with:
@@ -36,7 +36,7 @@ jobs:
3636
uses: pypa/gh-action-pypi-publish@release/v1
3737

3838
- name: sign
39-
uses: sigstore/gh-action-sigstore-python@v1.2.1
39+
uses: sigstore/gh-action-sigstore-python@v2.1.1
4040
with:
4141
inputs: ./dist/*.tar.gz ./dist/*.whl
4242
release-signing-artifacts: true

{{cookiecutter.project_slug}}/.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111
strategy:
1212
matrix:
1313
python:
14-
- "3.8"
1514
- "3.9"
1615
- "3.10"
1716
- "3.11"
17+
- "3.12"
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121

22-
- uses: actions/setup-python@v4
22+
- uses: actions/setup-python@v5
2323
with:
2424
python-version: ${{ matrix.python }}
2525
cache: "pip"

{{cookiecutter.project_slug}}/pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ classifiers = [
2222
{%- endif %}
2323
]
2424
dependencies = []
25-
requires-python = ">=3.8"
25+
requires-python = ">=3.9"
2626

2727
[project.optional-dependencies]
2828
doc = [
@@ -88,6 +88,10 @@ target-version = "py38"
8888

8989
[tool.ruff.lint]
9090
select = ["ALL"]
91+
# D203 and D213 are incompatible with D211 and D212 respectively.
92+
# COM812 and ISC001 can cause conflicts when using ruff as a formatter.
93+
# See https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules.
94+
ignore = ["D203", "D213", "COM812", "ISC001"]
9195

9296
[tool.ruff.lint.per-file-ignores]
9397
{% if cookiecutter.entry_point -%}

0 commit comments

Comments
 (0)