diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-10 17:04:39 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-10 17:21:41 +0200 |
commit | 9baf996c3e3e27208fe4f034744e278bba45adc1 (patch) | |
tree | a14cfc51606e2c9f85d3f68db16cfbc3dfa589d3 /.pre-commit-config.yaml | |
parent | 55953b3e433906855d92c42f630be9e4214553d0 (diff) | |
download | astroid-git-9baf996c3e3e27208fe4f034744e278bba45adc1.tar.gz |
Add prettier to pre-commit configuration
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r-- | .pre-commit-config.yaml | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3e5d87a5..ec9d2b50 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,20 +1,25 @@ repos: -- repo: https://github.com/asottile/pyupgrade + - repo: https://github.com/asottile/pyupgrade rev: v2.10.0 hooks: - id: pyupgrade exclude: tests/testdata - args: [ --py36-plus ] -- repo: https://github.com/ambv/black + args: [--py36-plus] + - repo: https://github.com/ambv/black rev: 20.8b1 hooks: - - id: black - args: [--safe, --quiet] - exclude: tests/testdata|doc/ -- repo: https://github.com/pre-commit/pre-commit-hooks + - id: black + args: [--safe, --quiet] + exclude: tests/testdata|doc/ + - repo: https://github.com/pre-commit/pre-commit-hooks rev: v3.4.0 hooks: - - id: trailing-whitespace - exclude: .github/|tests/testdata - - id: end-of-file-fixer - exclude: tests/testdata + - id: trailing-whitespace + exclude: .github/|tests/testdata + - id: end-of-file-fixer + exclude: tests/testdata + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v2.2.1 + hooks: + - id: prettier + args: [--prose-wrap=always, --print-width=88] |