diff --git a/.cz.toml b/.cz.toml index 22253f82..e81ead75 100644 --- a/.cz.toml +++ b/.cz.toml @@ -5,4 +5,4 @@ tag_format = "v$major.$minor.$patch$prerelease" version_files = [ "apps/controllerx/version.py", ".cz.toml:version" -] \ No newline at end of file +] diff --git a/.flake8 b/.flake8 index c400fb6f..9c6a8ccc 100644 --- a/.flake8 +++ b/.flake8 @@ -1,3 +1,3 @@ [flake8] -ignore=E501,W503 -exclude=controllerx.py \ No newline at end of file +ignore = E501, W503 +exclude = controllerx.py diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4290b283..f7086512 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,18 +1,4 @@ repos: -- repo: https://github.com/psf/black - rev: 19.10b0 - hooks: - - id: black -- repo: https://gitlab.com/pycqa/flake8 - rev: 3.7.9 - hooks: - - id: flake8 - files: apps/controllerx -- repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.770 - hooks: - - id: mypy - files: apps/controllerx - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.4.0 hooks: @@ -24,6 +10,24 @@ repos: - "4" - repo: local hooks: + - id: black + name: black + entry: black apps/controllerx tests + language: system + pass_filenames: false + always_run: true + - id: flake8 + name: flake8 + entry: flake8 apps/controllerx + language: system + pass_filenames: false + always_run: true + - id: mypy + name: mypy + entry: mypy apps/controllerx + language: system + pass_filenames: false + always_run: true - id: pytest name: pytest entry: pytest diff --git a/pytest.ini b/pytest.ini index f9a813e6..86d57a40 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,2 +1,2 @@ [pytest] -mock_use_standalone_module = true \ No newline at end of file +mock_use_standalone_module = true