From d3123184b7980d0d6ececf8c1d658e310acf5276 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Tue, 8 Nov 2022 17:53:32 -0600 Subject: [PATCH 1/2] Fix style checks. --- ci/checks/style.sh | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/checks/style.sh b/ci/checks/style.sh index f94272e03..586befc6f 100644 --- a/ci/checks/style.sh +++ b/ci/checks/style.sh @@ -19,7 +19,7 @@ ISORT=`isort --check-only python/cuspatial --settings-path=python/cuspatial/setu ISORT_RETVAL=$? # Run black and get results/return code -BLACK=`black --check python` +BLACK=`black --check --diff python` BLACK_RETVAL=$? # Run flake8 and get results/return code diff --git a/pyproject.toml b/pyproject.toml index a756854ea..dfd22f337 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ line-length = 79 target-version = ["py38"] include = '\.py?$' -exclude = ''' +force-exclude = ''' /( thirdparty | \.eggs | From 017f6f53d70b0b2456967c839d071ac4e74ec328 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Tue, 8 Nov 2022 17:58:49 -0600 Subject: [PATCH 2/2] Add explicit config. --- ci/checks/style.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/checks/style.sh b/ci/checks/style.sh index 586befc6f..fe382e5af 100644 --- a/ci/checks/style.sh +++ b/ci/checks/style.sh @@ -19,7 +19,7 @@ ISORT=`isort --check-only python/cuspatial --settings-path=python/cuspatial/setu ISORT_RETVAL=$? # Run black and get results/return code -BLACK=`black --check --diff python` +BLACK=`black --config pyproject.toml --check --diff python` BLACK_RETVAL=$? # Run flake8 and get results/return code