forked from inclusionAI/AReaL
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (27 loc) · 995 Bytes
/
format-check.yml
File metadata and controls
36 lines (27 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Check Formatting
on: [pull_request]
jobs:
check_formatting:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
pip install isort==6.0.1 black==25.1.0 clang-format==19.1.7 autoflake==2.3.1
- name: Check autoflake formatting
run: |
autoflake --check areal/
autoflake --check examples/
- name: Check Python formatting with isort
run: isort --check-only .
- name: Check Python formatting with black
run: black --check .
- name: Check C++ formatting
run: |
find . -type f \( -name '*.c' -o -name '*.h' -o -name '*.cpp' -o -name '*.hpp' -o -name '*.cu' -o -name '*.cuh' \) -exec clang-format --dry-run --Werror {} +