Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pre-commit checks for black+isort #1989

Merged
merged 1 commit into from
Dec 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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