nstarman/utilipy

View on GitHub
.pre-commit-config.yaml

Summary

Maintainability
Test Coverage
repos:
-   repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v2.3.0
    hooks:
    - id: check-added-large-files
    - id: check-case-conflict
    - id: check-merge-conflict
    - id: check-symlinks
    - id: check-toml
    - id: check-yaml
    - id: debug-statements
    - id: detect-private-key
    - id: end-of-file-fixer
    - id: fix-encoding-pragma
    - id: requirements-txt-fixer
    - id: trailing-whitespace
    - id: flake8
      args: # arguments to configure flake8
        # making isort line length compatible with black
        - "--max-line-length=88"
        - "--max-complexity=18"
        - "--select=B,C,E,F,W,T4,B9"

        # these are errors that will be ignored by flake8
        # check out their meaning here
        # https://flake8.pycqa.org/en/latest/user/error-codes.html
        - "--ignore=E203,F405,W503"
        - "--exclude=*/_astropy_init.py docs/conf.py"
-   repo: https://github.com/asottile/seed-isort-config
    rev: v1.9.3
    hooks:
        - id: seed-isort-config
-   repo: https://github.com/pre-commit/mirrors-isort
    rev: v4.3.21
    hooks:
        - id: isort
          additional_dependencies: ["toml"]
-   repo: https://github.com/psf/black
    rev: stable
    hooks:
        - id: black
          additional_dependencies: ["toml"]