Skip to content

Commit

Permalink
feat: add pre-commit
Browse files Browse the repository at this point in the history
Signed-off-by: jingfelix <[email protected]>
  • Loading branch information
jingfelix committed Dec 17, 2023
1 parent 8547a23 commit b83a304
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/pdm-project/pdm
rev: 2.11.1
hooks:
- id: pdm-export
args: ['-o', 'requirements.txt', '--without-hashes']
files: ^pdm.lock$
- id: pdm-lock-check
- id: pdm-sync
16 changes: 15 additions & 1 deletion pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b83a304

Please sign in to comment.