Skip to content

Commit bd16a84

Browse files
committed
All pre-commit fixes
1 parent dc496ee commit bd16a84

18 files changed

+423
-477
lines changed

.github/workflows/python-tests.yml

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ on:
44
pull_request:
55
push:
66
branches:
7-
- "*"
7+
- "*"
88
tags:
9-
- "v*"
9+
- "v*"
1010

1111
concurrency:
1212
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
@@ -16,7 +16,6 @@ env:
1616
FORCE_COLOR: 1
1717

1818
jobs:
19-
2019
package:
2120
name: Build & inspect our package.
2221
runs-on: ubuntu-latest
@@ -34,11 +33,11 @@ jobs:
3433
strategy:
3534
fail-fast: false
3635
matrix:
37-
python_version: [ '3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.10' ]
36+
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.10"]
3837
os: [windows-latest, ubuntu-latest] #, macos-latest]
3938
include:
40-
- os: windows-latest
41-
python_version: 'msys2'
39+
- os: windows-latest
40+
python_version: "msys2"
4241

4342
name: ${{ matrix.os }} - Python ${{ matrix.python_version }}
4443
steps:
@@ -97,32 +96,31 @@ jobs:
9796
timeout-minutes: 15
9897

9998
dist_upload:
100-
10199
runs-on: ubuntu-latest
102100
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
103101
permissions:
104102
id-token: write
105103
needs: [test]
106104
steps:
107-
- uses: actions/download-artifact@v4
108-
with:
109-
name: Packages
110-
path: dist
111-
- name: Publish package to PyPI
112-
uses: pypa/gh-action-pypi-publish@release/v1
105+
- uses: actions/download-artifact@v4
106+
with:
107+
name: Packages
108+
path: dist
109+
- name: Publish package to PyPI
110+
uses: pypa/gh-action-pypi-publish@release/v1
113111

114112
test-pypi-upload:
115113
runs-on: ubuntu-latest
116114
needs: [test]
117115
permissions:
118116
id-token: write
119117
steps:
120-
- uses: actions/download-artifact@v4
121-
with:
122-
name: Packages
123-
path: dist
124-
- name: Publish package to PyPI
125-
continue-on-error: true
126-
uses: pypa/gh-action-pypi-publish@release/v1
127-
with:
128-
repository-url: https://test.pypi.org/legacy/
118+
- uses: actions/download-artifact@v4
119+
with:
120+
name: Packages
121+
path: dist
122+
- name: Publish package to PyPI
123+
continue-on-error: true
124+
uses: pypa/gh-action-pypi-publish@release/v1
125+
with:
126+
repository-url: https://test.pypi.org/legacy/

.pre-commit-config.yaml

Lines changed: 29 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,40 @@
11
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
33
rev: v4.5.0
44
hooks:
5-
- id: trailing-whitespace
6-
- id: check-yaml
7-
- id: debug-statements
8-
- id: end-of-file-fixer
9-
- repo: https://github.com/astral-sh/ruff-pre-commit
10-
rev: v0.3.4
11-
hooks:
12-
- id: ruff
13-
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
14-
- id: ruff-format
15-
- repo: https://github.com/rbubley/mirrors-prettier
16-
rev: v3.3.3
17-
hooks:
18-
- id: prettier
19-
20-
- repo: https://github.com/tox-dev/pyproject-fmt
21-
rev: 1.7.0
22-
hooks:
23-
- id: pyproject-fmt
24-
exclude: docs/examples/
25-
26-
- repo: https://github.com/pre-commit/mirrors-mypy
5+
- id: trailing-whitespace
6+
- id: check-yaml
7+
- id: debug-statements
8+
- id: end-of-file-fixer
9+
- repo: https://github.com/astral-sh/ruff-pre-commit
10+
rev: v0.3.4
11+
hooks:
12+
- id: ruff
13+
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
14+
- id: ruff-format
15+
- repo: https://github.com/rbubley/mirrors-prettier
16+
rev: v3.3.3
17+
hooks:
18+
- id: prettier
19+
- repo: https://github.com/tox-dev/pyproject-fmt
20+
rev: 1.7.0
21+
hooks:
22+
- id: pyproject-fmt
23+
exclude: docs/examples/
24+
- repo: https://github.com/pre-commit/mirrors-mypy
2725
rev: v1.9.0
2826
hooks:
29-
- id: mypy
27+
- id: mypy
3028
args: [--strict]
3129
language_version: "3.10"
3230
additional_dependencies:
33-
- types-setuptools
34-
- tokenize-rt==3.2.0
35-
- pytest == 7.1
36-
- importlib_metadata
37-
- typing-extensions>=4.5
38-
- rich
39-
40-
- repo: https://github.com/scientific-python/cookie
31+
- types-setuptools
32+
- tokenize-rt==3.2.0
33+
- pytest == 7.1
34+
- importlib_metadata
35+
- typing-extensions>=4.5
36+
- rich
37+
- repo: https://github.com/scientific-python/cookie
4138
rev: 2024.04.23
4239
hooks:
4340
- id: sp-repo-review

.readthedocs.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ mkdocs:
1010
# Optionally declare the Python requirements required to build your docs
1111
python:
1212
install:
13-
- method: pip
14-
path: .
15-
extra_requirements:
16-
- docs
13+
- method: pip
14+
path: .
15+
extra_requirements:
16+
- docs

0 commit comments

Comments
 (0)