Skip to content

Commit

Permalink
Added pre-commit functionality using black.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcscott committed Aug 25, 2023
1 parent 2151c5d commit 2bfab76
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Install via pre-commit by running
# `pre-commit install`
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
# We'll need to manually update the version of black used in our pre-commits via
# `pre-commit autoupdate`.
# This is a conscious decision on the part of the pre-commit developers; for more information
# see https://pre-commit.com/#using-the-latest-version-for-a-repository
repos:
- repo: https://github.com/ambv/black
rev: 23.7.0
hooks:
- id: black
language_version: python3.10
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ dev = [
"black>=22.6.0",
"pytest",
"pytest-cov",
"pre-commit",
]

[tool.coverage.run]
Expand Down

0 comments on commit 2bfab76

Please sign in to comment.