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:
Jon Banafato
2019-11-09 10:33:47 -05:00
parent 2ff0d35f4b
commit df4dd93347
5 changed files with 26 additions and 6 deletions

3
.gitignore vendored
View File

@@ -26,7 +26,8 @@ dist/
downloads/
eggs/
.eggs/
lib/
# pyShelf uses its own `lib` directory, don't ignore it.
# lib/
lib64/
parts/
sdist/