Skip to content

Commit

Permalink
ci(local): add all azure pipeline checks into pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviml committed Apr 25, 2020
1 parent 5379fb9 commit aa512ae
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .cz.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ tag_format = "v$major.$minor.$patch$prerelease"
version_files = [
"apps/controllerx/version.py",
".cz.toml:version"
]
]
4 changes: 2 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[flake8]
ignore=E501,W503
exclude=controllerx.py
ignore = E501, W503
exclude = controllerx.py
32 changes: 18 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[pytest]
mock_use_standalone_module = true
mock_use_standalone_module = true

0 comments on commit aa512ae

Please sign in to comment.