Skip to content

Commit aa5d9a0

Browse files
authored
pre-commit: add hooks forbid-tabs and remove-tabs (#407)
1 parent 48b1405 commit aa5d9a0

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@ repos:
2626
- id: fix-byte-order-marker
2727
- id: mixed-line-ending
2828
- id: trailing-whitespace
29-
# - repo: https://github.com/Lucas-C/pre-commit-hooks
30-
# rev: v1.1.10
31-
# hooks:
32-
# - id: remove-tabs
29+
- repo: https://github.com/Lucas-C/pre-commit-hooks
30+
rev: v1.3.1
31+
hooks:
32+
- id: forbid-tabs
33+
exclude: \.c$|\.h$|\.one$|Makefile$|^src/ast/ast-structure\.txt$
34+
- id: remove-tabs
35+
exclude: \.c$|\.h$|\.one$|Makefile$|^src/ast/ast-structure\.txt$
3336
- repo: https://github.com/codespell-project/codespell
3437
rev: v2.2.2
3538
hooks:

Dockerfile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ ARG LLVM_VERSION=12.0.1
66

77
# LLVM dependencies
88
RUN apk --no-cache add \
9-
autoconf \
10-
automake \
11-
cmake \
12-
freetype-dev \
13-
g++ \
14-
gcc \
15-
libxml2-dev \
16-
linux-headers \
17-
make \
18-
musl-dev \
19-
ncurses-dev \
20-
python3 py3-pip \
9+
autoconf \
10+
automake \
11+
cmake \
12+
freetype-dev \
13+
g++ \
14+
gcc \
15+
libxml2-dev \
16+
linux-headers \
17+
make \
18+
musl-dev \
19+
ncurses-dev \
20+
python3 py3-pip \
2121
git
2222

2323
# Build and install LLVM

0 commit comments

Comments
 (0)