mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Use pre-commit
[pre-commit](https://pre-commit.com/) automatically runs tools like linters and fixers to make development easier. This change adds a simple pre-commit config file with an example trailing whitespace fixer and applies it to the existing project. Additionally, don't ignore the lib directory (an error introduced in #8).
This commit is contained in:
12
.pre-commit-config.yaml
Normal file
12
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
repos:
|
||||
# Meta housekeeping to keep pre-commit operating correctly
|
||||
- repo: meta
|
||||
hooks:
|
||||
- id: check-hooks-apply
|
||||
- id: check-useless-excludes
|
||||
|
||||
# General housekeeping and auto-fixers
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v1.3.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
Reference in New Issue
Block a user