Skip to content

Commit

Permalink
Update clang version, add ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
aarcangeli committed Nov 1, 2024
1 parent 6cfefe0 commit 83ae504
Show file tree
Hide file tree
Showing 13 changed files with 2,678 additions and 1,081 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "pluginVerifierHomeDir=~/.pluginVerifier" >> $GITHUB_OUTPUT
echo "changelog<<EOF" >> $GITHUB_OUTPUT
echo "$CHANGELOG" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
Expand Down
10 changes: 9 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@ exclude: ^\.idea|\.run

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v5.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-shebang-scripts-are-executable

# Python format and lint
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.4
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
[![Version](https://img.shields.io/jetbrains/plugin/v/20785-clang-format-tools.svg)](https://plugins.jetbrains.com/plugin/20785-clang-format-tools)
[![Downloads](https://img.shields.io/jetbrains/plugin/d/20785-clang-format-tools.svg)](https://plugins.jetbrains.com/plugin/20785-clang-format-tools)
[![codecov](https://codecov.io/github/aarcangeli/idea-clang-format/branch/main/graph/badge.svg?token=R9GW965X3Y)](https://codecov.io/github/aarcangeli/idea-clang-format)
![Static Badge](https://img.shields.io/badge/Get%20from%20Marketplace-blue?link=https%3A%2F%2Fplugins.jetbrains.com%2Fplugin%2F20785-clang-format-tools)


<!-- Plugin description -->

Expand Down
16 changes: 16 additions & 0 deletions schemaGenerator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# schema-generator

Permits to generate a json schema from (clangFormat-options.json) from clang doxygen documentation.

The relevant files are just the following:
- `Format.h`
- `IncludeStyle.h`

### Usage

```bash
python generate_schema.py --download
```

Options:
- `--download`: Download the latest source before generating the schema.
Loading

0 comments on commit 83ae504

Please sign in to comment.