Changeset View
Changeset View
Standalone View
Standalone View
.pre-commit-config.yaml
Show All 16 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-copyright-date | |||||
name: check-copyright-date | |||||
entry: bash | |||||
# Checks that there is either: | |||||
# * no Copyright header at all, or | |||||
# * at least one a Copyright header followed by the current year | |||||
args: ['-c', '(! grep -q "^# Copyright" $0) || grep -q "^# Copyright.*$(date +%Y)" $0'] | |||||
language: system | |||||
types: [python] | |||||
- 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 | ||||
Show All 13 Lines |