Skip to content

Commit

Permalink
pre-commit checks for black+isort (cloudtools#1989)
Browse files Browse the repository at this point in the history
Co-authored-by: Bradley Sherman <[email protected]>
  • Loading branch information
sirrus233 and sirrus233 authored Dec 17, 2021
1 parent 1b5108e commit 14734b4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
repos:
- repo: https://github.com/psf/black
rev: '21.12b0'
hooks:
- id: black

- repo: https://github.com/timothycrosley/isort
rev: '5.10.1'
hooks:
- id: isort
1 change: 1 addition & 0 deletions CONTRIBUTE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ will be run against any commits to the project.
#. Activate it: `source ~/virtualenv/troposphere/bin/activate`
#. `pip install --upgrade pip setuptools wheel`
#. `pip install -r requirements-dev.txt`
#. `pre-commit install`
#. Run tests
1. `pycodestyle .`
#. `pyflakes .`
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pycodestyle>=2.4
pydocstyle>=3.0
pyflakes>=2.1
pylint>=1.9
pre-commit>=2.16

# ---- ---- Testing
pytest>=4.1
Expand Down

0 comments on commit 14734b4

Please sign in to comment.