diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..c803c21 --- /dev/null +++ b/.pre-commit-config.yaml @@ -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"] diff --git a/clean_rst/__init__.py b/clean_rst/__init__.py index b794fd4..3dc1f76 100644 --- a/clean_rst/__init__.py +++ b/clean_rst/__init__.py @@ -1 +1 @@ -__version__ = '0.1.0' +__version__ = "0.1.0" diff --git a/tests/test_clean_rst.py b/tests/test_clean_rst.py index a1a2586..93d8d0d 100644 --- a/tests/test_clean_rst.py +++ b/tests/test_clean_rst.py @@ -2,4 +2,4 @@ from clean_rst import __version__ def test_version(): - assert __version__ == '0.1.0' + assert __version__ == "0.1.0"