diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 000000000..aa4ec3699 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,2 @@ +# Migrate code style to Black +41720c5a7e736587088d25140f7eee7af540f668 diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml new file mode 100644 index 000000000..9065b5e02 --- /dev/null +++ b/.github/workflows/black.yml @@ -0,0 +1,10 @@ +name: Lint + +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: psf/black@stable diff --git a/.pylintrc b/.pylintrc index 5464c30db..d679e9ca4 100644 --- a/.pylintrc +++ b/.pylintrc @@ -206,7 +206,7 @@ ignore-imports=no [FORMAT] # Maximum number of characters on a single line. -max-line-length=80 +max-line-length=88 # Regexp for a line that is allowed to be longer than the limit. ignore-long-lines=^\s*(# )??$