Skip to content

Commit 51705e5

Browse files
committed
Add pre-commit checks and align lint/style configuration
Introduce a pre-commit setup to enforce repository quality checks and normalize related formatting/lint behavior across the project. - add pre-commit configuration with hooks for: - REUSE license linting - YAML linting - codespell - standard pre-commit hygiene checks - GitHub Actions workflow linting (actionlint) - apply small consistency cleanups: - remove trailing whitespace/newline-only diffs in metadata/workflow files - normalize JSON formatting in metadata
1 parent f59bc37 commit 51705e5

File tree

8 files changed

+60
-63
lines changed

8 files changed

+60
-63
lines changed

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,3 @@ bazel-*
4242
build/
4343
cmake-build-*/
4444
CMakeUserPresets.json
45-

.github/dependabot.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
wget -qO /usr/local/bin/bazelisk \
9797
https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64
9898
chmod +x /usr/local/bin/bazelisk
99-
ln -s /usr/local/bin/bazelisk /usr/local/bin/bazel
99+
ln -s /usr/local/bin/bazelisk /usr/local/bin/bazel
100100
shell: bash
101101
- name: checkout
102102
uses: actions/checkout@v6
@@ -158,7 +158,7 @@ jobs:
158158
bazel-opensuse:
159159
name: bazel opensuse leap amd64
160160
runs-on: ubuntu-latest
161-
container: opensuse/leap:15
161+
container: opensuse/leap:16.0
162162
steps:
163163
- name: setup
164164
run: |
@@ -278,7 +278,7 @@ jobs:
278278
cmake \
279279
-DBUILD_DOCUMENTATION:BOOL=ON \
280280
-DBUILD_TESTING:BOOL=ON \
281-
-DCMAKE_INSTALL_PREFIX:PATH=${GITHUB_WORKSPACE}/_build/install \
281+
-DCMAKE_INSTALL_PREFIX:PATH=install \
282282
-DWARNINGS_AS_ERRORS:BOOL=ON \
283283
--warn-uninitialized \
284284
..
@@ -313,7 +313,7 @@ jobs:
313313
cmake \
314314
-DBUILD_DOCUMENTATION:BOOL=ON \
315315
-DBUILD_TESTING:BOOL=ON \
316-
-DCMAKE_INSTALL_PREFIX:PATH=${GITHUB_WORKSPACE}/_build/install \
316+
-DCMAKE_INSTALL_PREFIX:PATH=install \
317317
-DWARNINGS_AS_ERRORS:BOOL=ON \
318318
--warn-uninitialized \
319319
..
@@ -350,7 +350,7 @@ jobs:
350350
cmake \
351351
-DBUILD_DOCUMENTATION:BOOL=ON \
352352
-DBUILD_TESTING:BOOL=ON \
353-
-DCMAKE_INSTALL_PREFIX:PATH=${GITHUB_WORKSPACE}/_build/install \
353+
-DCMAKE_INSTALL_PREFIX:PATH=install \
354354
-DWARNINGS_AS_ERRORS:BOOL=ON \
355355
--warn-uninitialized \
356356
..
@@ -389,7 +389,7 @@ jobs:
389389
cmake \
390390
-DBUILD_DOCUMENTATION:BOOL=ON \
391391
-DBUILD_TESTING:BOOL=ON \
392-
-DCMAKE_INSTALL_PREFIX:PATH=${GITHUB_WORKSPACE}/_build/install \
392+
-DCMAKE_INSTALL_PREFIX:PATH=install \
393393
-DWARNINGS_AS_ERRORS:BOOL=ON \
394394
--warn-uninitialized \
395395
..
@@ -424,7 +424,7 @@ jobs:
424424
cmake \
425425
-DBUILD_DOCUMENTATION:BOOL=ON \
426426
-DBUILD_TESTING:BOOL=ON \
427-
-DCMAKE_INSTALL_PREFIX:PATH=${GITHUB_WORKSPACE}/_build/install \
427+
-DCMAKE_INSTALL_PREFIX:PATH=install \
428428
-DWARNINGS_AS_ERRORS:BOOL=ON \
429429
--warn-uninitialized \
430430
..
@@ -438,7 +438,7 @@ jobs:
438438
cmake-opensuse:
439439
name: cmake opensuse leap amd64
440440
runs-on: ubuntu-latest
441-
container: opensuse/leap:15
441+
container: opensuse/leap:16.0
442442
steps:
443443
- name: setup
444444
run: |
@@ -462,7 +462,7 @@ jobs:
462462
cmake \
463463
-DBUILD_DOCUMENTATION:BOOL=ON \
464464
-DBUILD_TESTING:BOOL=ON \
465-
-DCMAKE_INSTALL_PREFIX:PATH=${GITHUB_WORKSPACE}/_build/install \
465+
-DCMAKE_INSTALL_PREFIX:PATH=install \
466466
-DWARNINGS_AS_ERRORS:BOOL=ON \
467467
--warn-uninitialized \
468468
..
@@ -507,7 +507,7 @@ jobs:
507507
cmake \
508508
-DBUILD_DOCUMENTATION:BOOL=ON \
509509
-DBUILD_TESTING:BOOL=ON \
510-
-DCMAKE_INSTALL_PREFIX:PATH=${GITHUB_WORKSPACE}/_build/install \
510+
-DCMAKE_INSTALL_PREFIX:PATH=install \
511511
-DWARNINGS_AS_ERRORS:BOOL=ON \
512512
--warn-uninitialized \
513513
..
@@ -552,7 +552,7 @@ jobs:
552552
cmake \
553553
-DBUILD_DOCUMENTATION:BOOL=ON \
554554
-DBUILD_TESTING:BOOL=ON \
555-
-DCMAKE_INSTALL_PREFIX:PATH=${GITHUB_WORKSPACE}/_build/install \
555+
-DCMAKE_INSTALL_PREFIX:PATH=install \
556556
-DWARNINGS_AS_ERRORS:BOOL=ON \
557557
--warn-uninitialized \
558558
..
@@ -739,7 +739,7 @@ jobs:
739739
gradle-opensuse:
740740
name: gradle opensuse leap amd64
741741
runs-on: ubuntu-latest
742-
container: opensuse/leap:15
742+
container: opensuse/leap:16.0
743743
steps:
744744
- name: setup
745745
run: |

.pre-commit-config.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
repos:
3+
- repo: https://codeberg.org/fsfe/reuse-tool
4+
rev: v6.2.0
5+
hooks:
6+
- id: reuse-lint-file
7+
8+
- repo: https://github.com/adrienverge/yamllint
9+
rev: v1.38.0
10+
hooks:
11+
- id: yamllint
12+
args:
13+
- --format
14+
- parsable
15+
16+
- repo: https://github.com/codespell-project/codespell
17+
rev: v2.4.2
18+
hooks:
19+
- id: codespell
20+
21+
- repo: https://github.com/pre-commit/pre-commit-hooks
22+
rev: v6.0.0
23+
hooks:
24+
- id: check-case-conflict
25+
- id: check-json
26+
- id: check-merge-conflict
27+
- id: check-yaml
28+
- id: end-of-file-fixer
29+
- id: trailing-whitespace
30+
exclude: (?i)\.(markdown|md)$
31+
32+
- repo: https://github.com/rhysd/actionlint
33+
rev: v1.7.12
34+
hooks:
35+
- id: actionlint
36+
args:
37+
- -oneline
38+
39+
40+
41+
42+
43+

.zenodo.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"creators": [
55
{
66
"name": "Van den Berg, Jur",
7-
"affiliation": "University of North Carolina at Chapel Hill",
7+
"affiliation": "University of North Carolina at Chapel Hill"
88
},
99
{
1010
"name": "Guy, Stephen J.",
@@ -14,7 +14,7 @@
1414
{
1515
"name": "Snape, Jamie",
1616
"affiliation": "University of North Carolina at Chapel Hill",
17-
"orcid": "0000-0002-3326-9765",
17+
"orcid": "0000-0002-3326-9765"
1818
},
1919
{
2020
"name": "Lin, Ming C.",

blocks/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@
3434
# <https://gamma.cs.unc.edu/RVO2/>
3535
#
3636

37+
/bin/
3738
/build/

circle/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@
3434
# <https://gamma.cs.unc.edu/RVO2/>
3535
#
3636

37+
/bin/
3738
/build/

rvo/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@
3434
# <https://gamma.cs.unc.edu/RVO2/>
3535
#
3636

37+
/bin/
3738
/build/

0 commit comments

Comments
 (0)