mirror of
https://github.com/google/benchmark.git
synced 2024-12-26 12:30:14 +08:00
eaafe694d2
* Add a bzlmod Python bindings build Uses the newly started `@nanobind_bazel` project to build nanobind extensions. This means that we can drop all in-tree custom build defs and build files for nanobind and the C++ Python headers. Additionally, the temporary WORKSPACE overwrite hack naturally goes away due to the WORKSPACE system being obsolete. * Bump ruff -> v0.3.1, change ruff settings The latest minor releases incurred some formatting and configuration changes, this commit rolls them out. --------- Co-authored-by: dominic <510002+dmah42@users.noreply.github.com>
18 lines
522 B
YAML
18 lines
522 B
YAML
repos:
|
|
- repo: https://github.com/keith/pre-commit-buildifier
|
|
rev: 6.4.0
|
|
hooks:
|
|
- id: buildifier
|
|
- id: buildifier-lint
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v1.8.0
|
|
hooks:
|
|
- id: mypy
|
|
types_or: [ python, pyi ]
|
|
args: [ "--ignore-missing-imports", "--scripts-are-modules" ]
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.3.1
|
|
hooks:
|
|
- id: ruff
|
|
args: [ --fix, --exit-non-zero-on-fix ]
|
|
- id: ruff-format |