-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added pre-commit functionality using black.
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,6 +81,7 @@ dev = [ | |
"black>=22.6.0", | ||
"pytest", | ||
"pytest-cov", | ||
"pre-commit", | ||
] | ||
|
||
[tool.coverage.run] | ||
|