Skip to content

Commit

Permalink
Extend pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
dbast committed Feb 5, 2025
1 parent 0924039 commit 9a29315
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 10 deletions.
43 changes: 39 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,40 @@
repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v13.0.1
hooks:
- id: clang-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: fix-byte-order-marker
- id: check-case-conflict
- id: check-json
- id: check-yaml
exclude: ^.*meta\.yaml$
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v13.0.1
hooks:
- id: clang-format
types_or: [c++, c, c#, cuda, metal]
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
exclude: ^docs/.*|examples/.*|ffi/.*|versioneer.py$
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.3
hooks:
- id: yamlfmt
args: [--mapping, '2', --offset, '2', --sequence, '4', --implicit_start]
files: .pre-commit-config.yaml$
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.31.1
hooks:
- id: check-azure-pipelines
- id: check-github-workflows
- id: check-renovate
- repo: https://github.com/rhysd/actionlint
rev: v1.7.7
hooks:
- id: actionlint
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
3 changes: 3 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
"extends": [
"config:recommended"
],
"pre-commit": {
"enabled": true
},
"ignorePaths": ["docs/rtd-requirements.txt"]
}
1 change: 0 additions & 1 deletion run_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import os
import shutil
import sys

try:
import coverage
Expand Down
2 changes: 0 additions & 2 deletions runtests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/env python

import sys

from llvmlite.tests import main


Expand Down
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
import os
import sys

import versioneer


min_python_version = (3, 10)

Expand All @@ -42,9 +44,6 @@ def _guard_py_ver():

_guard_py_ver()


import versioneer

versioneer.VCS = 'git'
versioneer.versionfile_source = 'llvmlite/_version.py'
versioneer.versionfile_build = 'llvmlite/_version.py'
Expand Down

0 comments on commit 9a29315

Please sign in to comment.