From 4eeb076ce15eb74953d746a14bb7a12f93af1495 Mon Sep 17 00:00:00 2001 From: Leo Singer Date: Wed, 8 Dec 2021 13:24:53 -0500 Subject: [PATCH 1/2] Use pep8speaks for linting --- .github/workflows/build-and-test.yml | 8 +------- .pep8speaks.yml | 2 ++ 2 files changed, 3 insertions(+), 7 deletions(-) create mode 100644 .pep8speaks.yml diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index b0a230c..deb05c2 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -37,13 +37,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 poetry - - name: Lint with flake8 - run: | - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. - flake8 . --count --exit-zero --max-complexity=10 --statistics + pip install poetry - name: Install poetry environment run: | poetry install diff --git a/.pep8speaks.yml b/.pep8speaks.yml new file mode 100644 index 0000000..2bdf1ab --- /dev/null +++ b/.pep8speaks.yml @@ -0,0 +1,2 @@ +scanner: + linter: flake8 From eaaf2a34def278e05667ea6e28aecb00a4086e3d Mon Sep 17 00:00:00 2001 From: Leo Singer Date: Wed, 8 Dec 2021 13:25:31 -0500 Subject: [PATCH 2/2] Add lint error to test --- healpix_alchemy/func.py | 1 + 1 file changed, 1 insertion(+) diff --git a/healpix_alchemy/func.py b/healpix_alchemy/func.py index 35b2e9f..edd2434 100644 --- a/healpix_alchemy/func.py +++ b/healpix_alchemy/func.py @@ -4,5 +4,6 @@ from .types import Tile as _Tile + def union(tiles): return _func.unnest(_func.range_agg(tiles), type_=_Tile)