Core: configure pre-commit and run it on all files

This commit is contained in:
Bertrand Benjamin 2022-08-22 18:42:11 +02:00
parent b3d1fa42dc
commit 6ff76bbec3
3 changed files with 21 additions and 2 deletions

19
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,19 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
args: ["--profile", "black"]

View File

@ -1 +1 @@
__version__ = '0.1.0'
__version__ = "0.1.0"

View File

@ -2,4 +2,4 @@ from clean_rst import __version__
def test_version():
assert __version__ == '0.1.0'
assert __version__ == "0.1.0"