| 1 | repos: |
| 2 | - repo: https://github.com/asottile/pyupgrade |
| 3 | rev: v2.7.2 |
| 4 | hooks: |
| 5 | - id: pyupgrade |
| 6 | args: [--py37-plus] |
| 7 | - repo: https://github.com/psf/black |
| 8 | rev: 20.8b1 |
| 9 | hooks: |
| 10 | - id: black |
| 11 | args: |
| 12 | - --safe |
| 13 | - --quiet |
| 14 | files: ^.*\.py$ |
| 15 | - repo: https://github.com/codespell-project/codespell |
| 16 | rev: v1.17.1 |
| 17 | hooks: |
| 18 | - id: codespell |
| 19 | args: |
| 20 | - --ignore-words-list=hass,alot,datas,dof,dur,farenheit,hist,iff,ines,ist,lightsensor,mut,nd,pres,referer,ser,serie,te,technik,ue,uint,visability,wan,wanna,withing,iam,incomfort |
| 21 | - --skip="./.*,*.csv,*.json" |
| 22 | - --quiet-level=2 |
| 23 | exclude_types: [csv, json] |
| 24 | - repo: https://gitlab.com/pycqa/flake8 |
| 25 | rev: 3.8.4 |
| 26 | hooks: |
| 27 | - id: flake8 |
| 28 | additional_dependencies: |
| 29 | - flake8-docstrings==1.5.0 |
| 30 | - pydocstyle==5.1.1 |
| 31 | files: ^.*\.py$ |
| 32 | - repo: https://github.com/PyCQA/bandit |
| 33 | rev: 1.6.2 |
| 34 | hooks: |
| 35 | - id: bandit |
| 36 | args: |
| 37 | - --quiet |
| 38 | - --format=custom |
| 39 | files: ^rpi_bad_power.*\.py$ |
| 40 | - repo: https://github.com/PyCQA/isort |
| 41 | rev: 5.5.3 |
| 42 | hooks: |
| 43 | - id: isort |
| 44 | - repo: https://github.com/pre-commit/pre-commit-hooks |
| 45 | rev: v3.2.0 |
| 46 | hooks: |
| 47 | - id: check-executables-have-shebangs |
| 48 | stages: [manual] |
| 49 | - repo: https://github.com/adrienverge/yamllint.git |
| 50 | rev: v1.24.2 |
| 51 | hooks: |
| 52 | - id: yamllint |
| 53 | - repo: https://github.com/prettier/prettier |
| 54 | rev: 2.0.4 |
| 55 | hooks: |
| 56 | - id: prettier |
| 57 | stages: [manual] |
| 58 | - repo: https://github.com/pre-commit/mirrors-mypy |
| 59 | rev: v0.790 |
| 60 | hooks: |
| 61 | - id: mypy |
| 62 | - repo: https://github.com/pre-commit/mirrors-pylint |
| 63 | rev: v2.6.0 |
| 64 | hooks: |
| 65 | - id: pylint |
| 66 | additional_dependencies: [pylint-strict-informational] |