Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: "monthly"
groups:
actions:
patterns:
- "*"
19 changes: 10 additions & 9 deletions .github/workflows/clang-tools-release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build clang-tools wheels

on:

workflow_dispatch:
inputs:
llvm_version:
Expand Down Expand Up @@ -262,7 +263,7 @@ jobs:
run: |
echo "${{ github.event.inputs.llvm_version }}.${{ github.event.inputs.wheel_version }}" > clang-format_version.txt
cat clang-format_version.txt

- name: Build SDist
run: pipx run build --sdist

Expand Down Expand Up @@ -416,7 +417,7 @@ jobs:
create-draft-release:
name: Create draft release on GitHub
needs: [
build-clang-format-wheels,
build-clang-format-wheels,
build-clang-tidy-wheels,
build-clang-format-sdist,
build-clang-tidy-sdist,
Expand Down Expand Up @@ -449,7 +450,7 @@ jobs:
# Copy clang-tidy artifacts
find clang-tidy-dist -name "*.whl" -exec cp {} release-assets/ \;
find clang-tidy-dist -name "*.tar.gz" -exec cp {} release-assets/ \;

echo "Release assets:"
ls -la release-assets/

Expand All @@ -462,22 +463,22 @@ jobs:
name: "v${{ github.event.inputs.llvm_version }}"
body: |
# Clang Tools Python wheels

This release contains both `clang-format` and `clang-tidy` wheel packages.

## Included packages:
- **clang-format**: Code formatting tool
- **clang-tidy**: Static analysis and linting tool

## Installation:
```bash
# Install clang-format
pip install clang-format-${{ github.event.inputs.llvm_version }}-<platform>.whl
# Install clang-tidy

# Install clang-tidy
pip install clang-tidy-${{ github.event.inputs.llvm_version }}-<platform>.whl
```

## Assets:
- `.whl` files: Binary wheel packages for different platforms
- `.tar.gz` files: Source distributions
10 changes: 10 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: PR Autolabeler

on:
# pull_request event is required for autolabeler
pull_request:
types: [opened, reopened, synchronize]

jobs:
draft-release:
uses: cpp-linter/.github/.github/workflows/release-drafter.yml@main
13 changes: 13 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: 'Close stale issues'
on:
schedule:
- cron: '30 1 * * *'
permissions: {}

jobs:
stale:
permissions:
contents: read
issues: write
pull-requests: write
uses: cpp-linter/.github/.github/workflows/stale.yml@main
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-merge-conflict
Loading