Skip to content

Commit 06cc96d

Browse files
committed
Add pre-commit
1 parent 80da3c1 commit 06cc96d

File tree

3 files changed

+36
-3
lines changed

3 files changed

+36
-3
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ concurrency:
99
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1010
cancel-in-progress: true
1111
jobs:
12+
pre-commit:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: 3.x
19+
- uses: pre-commit/action@v3.0.1
20+
1221
build-test:
1322
runs-on: ${{ matrix.os }}
1423
strategy:
@@ -17,7 +26,6 @@ jobs:
1726
python-version: ['3.8', 'pypy3.10', '3.12']
1827
os: [ubuntu-latest, windows-latest]
1928
fail-fast: false
20-
2129
steps:
2230
- name: Checkout
2331
uses: actions/checkout@v4

.pre-commit-config.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Learn more about this config here: https://pre-commit.com/
2+
3+
# To enable these pre-commit hooks run:
4+
# `pipx install pre-commit` or `brew install pre-commit`
5+
# Then in the project root directory run `pre-commit install`
6+
7+
repos:
8+
- repo: https://github.com/codespell-project/codespell
9+
rev: v2.4.1
10+
hooks:
11+
- id: codespell
12+
args:
13+
- --ignore-words-list=alse,ons
14+
additional_dependencies:
15+
- tomli
16+
17+
- repo: https://github.com/tox-dev/pyproject-fmt
18+
rev: v2.5.1
19+
hooks:
20+
- id: pyproject-fmt
21+
22+
- repo: https://github.com/abravalheri/validate-pyproject
23+
rev: v0.23
24+
hooks:
25+
- id: validate-pyproject

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
build-backend = "setuptools.build_meta:__legacy__"
33
requires = [
4-
"setuptools",
5-
"wheel",
4+
"setuptools",
5+
"wheel",
66
]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy