Skip to content

Commit cb3233b

Browse files
committed
initial metadata
1 parent b8f2f86 commit cb3233b

4 files changed

Lines changed: 64 additions & 0 deletions

File tree

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: asottile
2+
open_collective: pre-commit

.github/workflows/main.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: main
2+
on:
3+
push:
4+
branches: [master]
5+
schedule:
6+
- cron: '55 8 * * *'
7+
8+
jobs:
9+
build:
10+
name: main
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-python@v2
15+
- run: pip install pre-commit-mirror-maker
16+
- run: git config --global user.name 'Github Actions'
17+
- run: git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
18+
- run: pre-commit-mirror . --language=python --package-name=clang-format --types-or c++ --types-or c --types-or 'c#' --args=-style=file,-i
19+
- run: |
20+
git remote set-url origin https://x-access-token:$GH_TOKEN@github.com/$GITHUB_REPOSITORY
21+
git push origin HEAD:refs/heads/master --tags
22+
env:
23+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2021 Anthony Sottile
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
clang-format mirror
2+
===================
3+
4+
Mirror of `clang-format` package for pre-commit.
5+
6+
For pre-commit: see https://github.com/pre-commit/pre-commit
7+
8+
For clang-format: see https://github.com/ssciwr/clang-format-wheel
9+
10+
11+
### Using clang-format with pre-commit
12+
13+
Add this to your `.pre-commit-config.yaml`:
14+
15+
```yaml
16+
- repo: https://github.com/pre-commit/mirrors-clang-format
17+
rev: '' # Use the sha / tag you want to point at
18+
hooks:
19+
- id: clang-format
20+
```

0 commit comments

Comments
 (0)