Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add covsonar 1 precommit hook to run black and zimports, etc. #116

Merged
merged 1 commit into from
Oct 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
exclude_types: [csv, tsv]
exclude: \.(fna|fasta|fa|gff|gff3)$
- id: trailing-whitespace
exclude_types: [csv, tsv]
exclude: \.(fna|fasta|fa|gff|gff3)$

- repo: https://github.com/sqlalchemyorg/zimports
rev: v0.4.5
hooks:
- id: zimports
args:
- --keep-unused-type-checking
- --black-line-length=79

- repo: https://github.com/python/black
rev: 22.3.0
hooks:
- id: black
Loading