Skip to content

Commit

Permalink
add basic pre-commit-hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaelicke committed Oct 13, 2023
1 parent 48b7259 commit b47f597
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
repos:
# Fix common spelling mistakes
- repo: https://github.com/codespell-project/codespell
rev: v2.2.1
hooks:
- id: codespell
args: [
# Verly is a Name, coo references the SciPy coo sparse matrix
'--ignore-words-list', 'verly,coo',
'--write-changes',
# 'nd,alos,inout',
# '--ignore-regex', '\bhist\b',
'--'
]
types_or: [python, rst, markdown]
files: ^(skgstat|docs|tutorials)/
# Fix common spelling mistakes
- repo: https://github.com/codespell-project/codespell
rev: v2.2.1
hooks:
- id: codespell
args: [
# Verly is a Name, coo references the SciPy coo sparse matrix
'--ignore-words-list', 'verly,coo',
'--write-changes',
# 'nd,alos,inout',
# '--ignore-regex', '\bhist\b',
'--'
]
types_or: [python, rst, markdown]
files: ^(skgstat|docs|tutorials)/

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace

0 comments on commit b47f597

Please sign in to comment.