From e9d2975df049227fe067f63518cb43da2f842391 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Wed, 2 Aug 2023 15:38:54 +0100 Subject: [PATCH] Changes for Black integration --- .git-blame-ignore-revs | 2 ++ .github/workflows/black.yml | 10 ++++++++++ .pylintrc | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .git-blame-ignore-revs create mode 100644 .github/workflows/black.yml 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*(# )??$