Changeset View
Changeset View
Standalone View
Standalone View
.pre-commit-config.yaml
Show All 18 Lines | - repo: local | ||||
- id: mypy | - id: mypy | ||||
name: mypy | name: mypy | ||||
entry: mypy | entry: mypy | ||||
args: [swh] | args: [swh] | ||||
pass_filenames: false | pass_filenames: false | ||||
language: system | language: system | ||||
types: [python] | types: [python] | ||||
- id: check-bumped-dbversion | |||||
name: check-bumped-dbversion | |||||
files: 'sql/upgrades/.*\.sql' | |||||
entry: grep | |||||
args: ['insert into dbversion'] | |||||
language: system | |||||
- repo: https://github.com/python/black | - repo: https://github.com/python/black | ||||
rev: 19.10b0 | rev: 19.10b0 | ||||
hooks: | hooks: | ||||
- id: black | - id: black | ||||
# unfortunately, we are far from being able to enable this... | # unfortunately, we are far from being able to enable this... | ||||
#- repo: https://github.com/PyCQA/pydocstyle.git | #- repo: https://github.com/PyCQA/pydocstyle.git | ||||
# rev: 4.0.0 | # rev: 4.0.0 | ||||
# hooks: | # hooks: | ||||
# - id: pydocstyle | # - id: pydocstyle | ||||
# name: pydocstyle | # name: pydocstyle | ||||
# description: pydocstyle is a static analysis tool for checking compliance with Python docstring conventions. | # description: pydocstyle is a static analysis tool for checking compliance with Python docstring conventions. | ||||
# entry: pydocstyle --convention=google | # entry: pydocstyle --convention=google | ||||
# language: python | # language: python | ||||
# types: [python] | # types: [python] |