Skip to content

Commit 026afb8

Browse files
author
Darius Neațu
committed
Enable linter on local MAC OS
1 parent 0a0e29c commit 026afb8

File tree

6 files changed

+2001
-1320
lines changed

6 files changed

+2001
-1320
lines changed

.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@
33
# Note: Anybody from org can help with review. In the end, at least one codeowner approval is required.
44

55
* @neatudarius @RaduNichita @mguludag @JeffGarland @inbal2l @ednolan @camio
6-

.github/workflows/pre-commit.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,26 @@ on: [push]
1010

1111
jobs:
1212
pre-commit:
13-
uses: bemanproject/infra-workflows/.github/workflows/reusable-beman-pre-commit.yml@1.1.0
13+
name: Pre-Commit check on Push
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: "3.13"
24+
25+
# Required for local pre-commit hooks (markdownlint-cli, eslint, prettier)
26+
- name: Set up Node
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: "20"
30+
cache: "npm"
31+
32+
- name: Install npm dependencies
33+
run: npm ci
34+
35+
- uses: pre-commit/action@v3.0.1

.pre-commit-config.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,14 @@ repos:
2222
hooks:
2323
- id: prettier
2424

25-
- repo: https://github.com/markdownlint/markdownlint
26-
rev: v0.12.0 # Use the latest stable version
25+
# Node-based markdownlint (avoids Ruby 3.1+ requirement of the mdl gem)
26+
- repo: local
2727
hooks:
2828
- id: markdownlint
29-
30-
- repo: https://github.com/zricethezav/gitleaks
31-
rev: v8.17.0 # Use the latest stable version
32-
hooks:
33-
- id: gitleaks
29+
name: markdownlint
30+
entry: markdownlint-cli
31+
language: node
32+
types: [markdown]
3433

3534
exclude: |
3635
^static/.*

0 commit comments

Comments
 (0)