Skip to content

Commit

Permalink
build: Add pre-commit and hooks for black and flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
stdtom committed Oct 18, 2020
1 parent 32af90a commit 3860514
Show file tree
Hide file tree
Showing 3 changed files with 197 additions and 3 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/python/black.git
rev: 20.8b1
hooks:
- id: black
language_version: python3
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3
hooks:
- id: flake8
187 changes: 184 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Click = "^7.0"
pytest = "^4.6"
black = {version = "*", allow-prereleases = true, python = ">=3.6"}
flake8 = "*"
pre-commit = "*"

[tool.poetry.scripts]
auto-changelog = 'auto_changelog.__main__:main'
Expand Down

0 comments on commit 3860514

Please sign in to comment.