Skip to content

Commit f9dd86d

Browse files
authored
Merge pull request #65 from mfisher87/more-precommit-checks
More precommit checks
2 parents 2ff0668 + 1a8779b commit f9dd86d

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.github/workflows/check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ jobs:
2222
- name: "Install pre-commit"
2323
run: "pip install pre-commit"
2424

25-
- name: "Run checks with pre-commit"
26-
run: "pre-commit run --all-files --show-diff-on-failure --color always"
25+
- name: "Run lint and format checks"
26+
run: "make lint"

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
repos:
2+
- repo: "https://github.com/pre-commit/pre-commit-hooks"
3+
rev: "v4.4.0"
4+
hooks:
5+
- id: "check-added-large-files"
6+
- id: "check-vcs-permalinks"
7+
- id: "no-commit-to-branch"
8+
# TODO: Apply this fixer and add an entry to .git-blame-ignore-revs
9+
# - id: "end-of-file-fixer"
10+
211
- repo: "https://github.com/charliermarsh/ruff-pre-commit"
312
rev: "v0.0.269"
413
hooks:

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.PHONY: lint
2+
lint:
3+
pre-commit run --all-files --show-diff-on-failure --color always

0 commit comments

Comments
 (0)