diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml new file mode 100644 index 00000000..5569b115 --- /dev/null +++ b/.pre-commit-hooks.yaml @@ -0,0 +1,12 @@ +- id: hacking + name: hacking + description: 'Runs hacking, the OpenStack blend of flake8' + entry: flake8 + language: python + types: [python] + require_serial: true + additional_dependencies: + # This enables the pep257 extra from hacking by default. If you want + # to avoid it, just override additional_dependencies in your hook config + # by listing only `- .`. We assume that most users want this feature. + - .[pep257]