Skip to content

Commit

Permalink
Add Pre-Commit Hooks for Code Linting and Formatting fosslight#219
Browse files Browse the repository at this point in the history
Signed-off-by: SaJH <[email protected]>
  • Loading branch information
JaeHyuckSa committed Aug 12, 2024
1 parent f139971 commit db09844
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.8.0
hooks:
- id: black

- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort

- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ tox-wheel
pytest
pytest-cov
pytest-flake8
pre-commit

0 comments on commit db09844

Please sign in to comment.