Skip to content

Commit

Permalink
Add clang-format to pypackage dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Mar 21, 2024
1 parent dbfdf9b commit 912378f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/auto-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4

- name: Install clang-format
run: sudo apt install clang-format-18

- name: Install auto-sync package
run: |
pip install .
Expand Down
6 changes: 0 additions & 6 deletions suite/auto-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ Unfortunately not all architectures are supported yet.

## Install dependencies

Install clang-format

```
sudo apt install clang-format-18
```

Setup Python environment and Tree-sitter

```
Expand Down
1 change: 1 addition & 0 deletions suite/auto-sync/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies = [
"ninja >= 1.11.1.1",
"cmake >= 3.28.3",
"reuse >= 3.0.1",
"clang-format >= 18.1.1",
]
requires-python = ">= 3.11"

Expand Down
2 changes: 1 addition & 1 deletion suite/auto-sync/src/autosync/Helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def run_clang_format(out_paths: list[Path]):
log.info(f"Format {out_file}")
subprocess.run(
[
"clang-format-18",
"clang-format",
f"-style=file:{get_path('{CS_CLANG_FORMAT_FILE}')}",
"-i",
out_file,
Expand Down

0 comments on commit 912378f

Please sign in to comment.