Skip to content

Commit

Permalink
build: update pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
crazybolillo committed Mar 18, 2024
1 parent 834499b commit 03052a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,9 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Install tools
run: sudo apt install clang-format
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v3
with:
python-version: 3.9
- uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: ${{runner.os}}-pre-commit
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files
- uses: pre-commit/[email protected]
unittests:
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: mixed-line-ending
args:
- --fix=lf
- id: end-of-file-fixer
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v16.0.6
rev: v18.1.1
hooks:
- id: clang-format
3 changes: 2 additions & 1 deletion tests/test_si5351.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ TEST_F(TestSi5351, CalcFreq) {
.omd_int = 8,
.omd_num = 0,
.omd_den = 1,
.ref_freq = REF_25};
.ref_freq = REF_25
};
ASSERT_EQ(75e6, si5351_comp_freq(&config));

config.fmd_num = 6;
Expand Down

0 comments on commit 03052a3

Please sign in to comment.