mirror of
https://github.com/AdaCore/git-hooks.git
synced 2026-02-12 12:43:11 -08:00
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
18 lines
406 B
YAML
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/.*"
|