0002-misc-add-pyugrade-files-notes-61865.patch
.git-blame-ignore-revs | ||
---|---|---|
4 | 4 |
06db6d8767c2f032beced88f3f374c7630a152d1 |
5 | 5 |
# misc: apply black 22.1.0 |
6 | 6 |
d2c0be039649febded68d9d04f745cd18b2b2e03 |
7 |
# misc: apply pyupgrade (#61865) |
|
8 |
9c4f5d22098d7741f20f6562692789cf4810132e |
.pre-commit-config.yaml | ||
---|---|---|
1 | 1 |
# See https://pre-commit.com for more information |
2 | 2 |
# See https://pre-commit.com/hooks.html for more hooks |
3 | 3 |
repos: |
4 |
- repo: https://github.com/asottile/pyupgrade |
|
5 |
rev: v2.20.0 |
|
6 |
hooks: |
|
7 |
- id: pyupgrade |
|
8 |
args: ['--keep-percent-format', '--py37-plus'] |
|
4 | 9 |
- repo: https://github.com/psf/black |
5 | 10 |
rev: 22.3.0 |
6 | 11 |
hooks: |
README | ||
---|---|---|
66 | 66 | |
67 | 67 |
isort --profile black --line-length 110 |
68 | 68 | |
69 |
There is .pre-commit-config.yaml to use pre-commit to automatically run black |
|
69 |
pyupgrade is used to automatically upgrade syntax, using those parameters: |
|
70 | ||
71 |
pyupgrade --keep-percent-format --py37-plus |
|
72 | ||
73 |
There is .pre-commit-config.yaml to use pre-commit to automatically run these tools |
|
70 | 74 |
before commits. (execute `pre-commit install` to install the git hook.) |
71 | 75 | |
72 | 76 |
The .git-blame-ignore-revs file could be used to hide the related |
73 |
- |