py-code-analyzer / .pre-commit-config.yaml
cyyeh's picture
add code_analyzer and code_fetcher to fetch repo code and analyze imports
a908fc5
raw
history blame
1.03 kB
repos:
- repo: local
hooks:
- id: isort
name: isort
stages: [commit]
language: system
entry: pipenv run isort
types: [python]
- id: black
name: black
stages: [commit]
language: system
entry: pipenv run black
types: [python]
- id: flake8
name: flake8
stages: [commit]
language: system
entry: pipenv run flake8
types: [python]
exclude: setup.py
- id: mypy
name: mypy
stages: [commit]
language: system
entry: pipenv run mypy
types: [python]
pass_filenames: false
# - id: pytest
# name: pytest
# stages: [commit]
# language: system
# entry: pipenv run pytest
# types: [python]
# - id: pytest-cov
# name: pytest
# stages: [push]
# language: system
# entry: pipenv run pytest --cov
# types: [python]
# pass_filenames: false