Skip to content

Commit 693e6e5

Browse files
Install pre-commit for repository
- Ensure we are formatting properly and consistently - Users can in principle choose to opt out of automatic hooks by not installing the tool in the repo - Simplicity of incluing linting into CI - For stability we run them initially in parallel to existing linting scripts - Scalability and futher development is simple as we can use existing solutions instead of implementing our own linting setup
1 parent 209ff11 commit 693e6e5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/lint.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ jobs:
8787
pre-commit:
8888
name: Pre-commit
8989
runs-on: ubuntu-latest
90+
continue-on-error: true
9091

9192
steps:
9293
- uses: actions/checkout@v4
@@ -96,4 +97,12 @@ jobs:
9697
- uses: actions/setup-python@v5
9798
with:
9899
python-version-file: .tool-versions
100+
- uses: ruby/setup-ruby@v1
101+
with:
102+
bundler-cache: true
103+
- uses: actions/setup-node@v4
104+
with:
105+
node-version-file: .tool-versions
106+
cache: yarn
107+
- run: yarn install --immutable --immutable-cache --check-cache
99108
- uses: pre-commit/action@v3.0.1

0 commit comments

Comments
 (0)