Files
git-hooks/.pre-commit-config.yaml
Joel Brobecker 9c970a4716 format testsuite/tests/* with black, include them in pre-commit checks
While many testcases don't meet flake8 requirements right now
(the most prevalent one is the "*" import, but we also have
expected output strings with lines longer than 88 characters),
we can still improve the testcases using black to format them.
If anything, this will avoid to break many of flake8's rules.

This commit changes the .pre-commit-config.yaml file to remove
the exclusion for testsuite/tests/*. From there, all the files
in testsuite/tests/ were reformatted via:

    $ pre-commit run --all

Change-Id: Ia4957899cabf909f401bb2a242ed7035d89f1df9
2021-06-27 10:07:36 -07:00

18 lines
406 B
YAML

repos:
- repo: https://github.com/ambv/black
rev: 21.5b1
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 3.9.1
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-builtins
- flake8-comprehensions
- flake8-docstrings
- flake8-rst-docstrings
- pygments
exclude: "^testsuite/tests/.*"