https://github.com/ccrisan/motioneye
Raw File
Tip revision: 2862efef79d9c107379459cea9edbb7bbc3d9161 authored by MichaIng on 24 December 2023, 13:52:06 UTC
[CI/CD] Add PyPi release workflow to dev branch (#2675)
Tip revision: 2862efe
.pre-commit-config.yaml
# Learn more about this config here: https://pre-commit.com/

# To enable these pre-commit hook run:
# `brew install pre-commit` or `python3 -m pip install pre-commit`
# Then in the project root directory run `pre-commit install`

# default_language_version:
#   python: python3.10

repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.5.0
    hooks:
      - id: check-builtin-literals
      - id: check-executables-have-shebangs
      - id: check-shebang-scripts-are-executable
      - id: check-yaml
      - id: detect-private-key
      - id: end-of-file-fixer
      - id: mixed-line-ending
      - id: trailing-whitespace
  - repo: https://github.com/PyCQA/bandit
    rev: 1.7.6
    hooks:
      - id: bandit
        args:
          - --skip=B104,B105,B108,B110,B301,B310,B321,B324,B402,B403,B404,B602,B603,B604,B605,B607,B701
  - repo: https://github.com/python/black
    rev: 23.12.1
    hooks:
      - id: black
        args: [--skip-string-normalization]
  - repo: https://github.com/codespell-project/codespell
    rev: v2.2.6
    hooks:
      - id: codespell
      # See args in setup.cfg
  - repo: https://github.com/PyCQA/flake8
    rev: 6.1.0
    hooks:
      - id: flake8
        additional_dependencies: [flake8-2020, flake8-bugbear, flake8-comprehensions, flake8-return]
        args:
          - --builtins=_
          - --count
          - --max-complexity=68
          - --max-line-length=125
          - --select=C901,E501,E9,F63,F7,F82
          - --show-source
          - --statistics
  - repo: https://github.com/timothycrosley/isort
    rev: 5.13.2
    hooks:
      - id: isort
        args: ["--profile", "black", "--filter-files"]
  - repo: https://github.com/asottile/pyupgrade
    rev: v3.15.0
    hooks:
      - id: pyupgrade
        args: [--py37-plus]
back to top