Skip to content

Commit

Permalink
Merge pull request #191 from jwlodek/add-pre-commit
Browse files Browse the repository at this point in the history
Adding pre-commit config setup from ophyd async
  • Loading branch information
mrakitin authored Oct 1, 2024
2 parents eaa7617 + cdb012b commit 9b285f9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-yaml
- id: check-merge-conflict

- repo: local
hooks:
- id: ruff
name: lint with ruff
language: system
entry: ruff check --force-exclude
types: [python]
require_serial: true

- id: ruff-format
name: format with ruff
language: system
entry: ruff format --force-exclude
types: [python]
require_serial: true
4 changes: 3 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ numpydoc
pytest
sphinx
sphinx_rtd_theme
area_detector_handlers
area_detector_handlers
pre-commit
ruff

0 comments on commit 9b285f9

Please sign in to comment.