Skip to content

Commit 5b98991

Browse files
committed
Adding assembler to pre-commit check
1 parent e84776b commit 5b98991

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/format.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Format
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
format:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.10'
19+
20+
- name: Install pre-commit
21+
run: pip install pre-commit
22+
23+
- name: Run pre-commit checks
24+
run: pre-commit run

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ tmp/
1919
#========================
2020

2121
*.yml
22+
!.github/workflows/*.yml
2223
*.pyc
2324
*.bak
2425
*.pkl

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ repos:
6262
- -rn # Only display messages
6363
- -sn # Don't display the score
6464
- --source-roots=p-isa_tools/kerngen # Working directory
65+
- --source-roots=assembler_tools/hec-assembler-tools # Added directory
6566
- id: clang-format-14
6667
name: clang-format-14
6768
entry: clang-format-14

0 commit comments

Comments
 (0)