Skip to content

Commit 73f09d4

Browse files
Merge pull request #4 from elliotwutingfeng/precommit
By decree, we shall use pre-commit.
2 parents cc231b6 + 27a0e1b commit 73f09d4

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.pre-commit-config.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v6.0.0
4+
hooks:
5+
- id: check-yaml
6+
always_run: true
7+
- repo: local
8+
hooks:
9+
- id: make-tests-with-coverage-report
10+
always_run: true
11+
name: Run make tests_with_coverage_report
12+
language: system
13+
entry: make tests_with_coverage_report

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
setup_pre_commit:
2+
uvx pre-commit install
3+
14
format:
25
dart fix --apply
36
dart format .

0 commit comments

Comments
 (0)