Skip to content

Commit 3a66d58

Browse files
committed
Adding precommit to repo
1 parent 8d42e48 commit 3a66d58

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/lint.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Python Tests
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
concurrency:
8+
group: tests-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
12+
jobs:
13+
14+
lint:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: '3.10'
21+
cache: 'pip'
22+
cache-dependency-path: 'pyproject.toml'
23+
- name: Install Python dependencies
24+
run: |
25+
python -m pip install -U pip pre-commit
26+
- name: Run linters
27+
run: |
28+
pre-commit run --hook-stage=manual --all-files

.pre-commit-config.yaml

Whitespace-only changes.

0 commit comments

Comments
 (0)