CoolFace
Apppublic

cyyeh/py-code-analyzer

sourceHugging Facemitupdated 4y agoView on Hugging Face
0likes
.pre-commit-config.yaml47 linesDownload Raw Back to root
1repos:2  - repo: local3    hooks:4      - id: isort5        name: isort6        stages: [commit]7        language: system8        entry: pipenv run isort py_code_analyzer app.py9        types: [python]10 11      - id: black12        name: black13        stages: [commit]14        language: system15        entry: pipenv run black py_code_analyzer app.py16        types: [python]17 18      - id: flake819        name: flake820        stages: [commit]21        language: system22        entry: pipenv run flake8 py_code_analyzer app.py23        types: [python]24 25      - id: mypy26        name: mypy27        stages: [commit]28        language: system29        entry: pipenv run mypy py_code_analyzer app.py30        types: [python]31        pass_filenames: false32 33      # - id: pytest34      #   name: pytest35      #   stages: [commit]36      #   language: system37      #   entry: pipenv run pytest tests38      #   types: [python]39 40      # - id: pytest-cov41      #   name: pytest42      #   stages: [push]43      #   language: system44      #   entry: pipenv run pytest --cov tests45      #   types: [python]46      #   pass_filenames: false47