Skip to content

Commit

Permalink
Pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dcwatson committed May 8, 2024
1 parent 8a0db04 commit 6ebb814
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.4.3
hooks:
# Run the linter.
- id: ruff
args: ["--fix"]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.5
hooks:
- id: clang-format
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ managed = true
dev-dependencies = [
"pytest>=7",
"pytest-benchmark",
"pre-commit>=3.7.0",
]

[tool.scikit-build]
Expand Down
19 changes: 19 additions & 0 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,33 @@
# with-sources: false

-e file:.
cfgv==3.4.0
# via pre-commit
distlib==0.3.8
# via virtualenv
filelock==3.14.0
# via virtualenv
identify==2.5.36
# via pre-commit
iniconfig==2.0.0
# via pytest
nodeenv==1.8.0
# via pre-commit
packaging==24.0
# via pytest
platformdirs==4.2.1
# via virtualenv
pluggy==1.5.0
# via pytest
pre-commit==3.7.0
py-cpuinfo==9.0.0
# via pytest-benchmark
pytest==8.2.0
# via pytest-benchmark
pytest-benchmark==4.0.0
pyyaml==6.0.1
# via pre-commit
setuptools==69.5.1
# via nodeenv
virtualenv==20.26.1
# via pre-commit

0 comments on commit 6ebb814

Please sign in to comment.