Skip to content

Commit

Permalink
Added pre-commit to enable flake8 checks (#244)
Browse files Browse the repository at this point in the history
Added pre-commit to enable flake8 checks before a commit is accepted.

Also reordered requirements.txt to more
easily determine which are for development.
  • Loading branch information
kcathey committed Apr 9, 2020
1 parent 07d321f commit b7e4dab
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 13 deletions.
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# 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: v2.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-toml
- id: flake8
19 changes: 12 additions & 7 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,28 @@ verify_ssl = true
name = "pypi"

[packages]
"enum34" = "*"
filelock = "*"
PyYAML = ">=4.2b1"
six = "*"
filelock = "*"
tabulate = "*"
Fabric = "*"
PyYAML = ">= 4.2b1"
dill = "*"
maestrowf = {path = "."}

[dev-packages]
"flake8" = "*"
flake8 = "*"
pydocstyle = "*"
pylint = "*"
tox = "*"
coverage = "*"
sphinx_rtd_theme = "*"
Sphinx = "*"
pytest = "*"
fabric = "*"
Sphinx = "*"
pytest-cov = "*"
pre-commit = "*"
sphinx-rtd-theme = "*"

[pipenv]
allow_prereleases = true

[requires]
python_version = "3.6"
16 changes: 10 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
fabric
coverage
filelock
PyYAML>=4.2b1
six
filelock
tabulate
enum34; python_version<'3.4'
dill
-e .

fabric
coverage
sphinx_rtd_theme
sphinx
flake8
pydocstyle
pylint
tox
tabulate
pytest
enum34; python_version<'3.4'
dill
pytest-cov
pre-commit

0 comments on commit b7e4dab

Please sign in to comment.