From 7a049183ab898e5196accaca4ca2d1117533b8d7 Mon Sep 17 00:00:00 2001 From: Koen Vossen Date: Fri, 6 Nov 2020 11:42:28 +0100 Subject: [PATCH] Make 'black' happy --- .github/workflows/test-linux.yml | 2 +- .github/workflows/test-windows.yml | 2 +- kloppy/utils.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-linux.yml b/.github/workflows/test-linux.yml index 31d0401a..c327a265 100644 --- a/.github/workflows/test-linux.yml +++ b/.github/workflows/test-linux.yml @@ -28,7 +28,7 @@ jobs: pip install -e ".[test]" - name: Code formatting run: | - pip install black + pip install black==20.8b1 black --check . - name: Test with pytest run: | diff --git a/.github/workflows/test-windows.yml b/.github/workflows/test-windows.yml index f6a0d458..6e890755 100644 --- a/.github/workflows/test-windows.yml +++ b/.github/workflows/test-windows.yml @@ -28,7 +28,7 @@ jobs: pip install -e ".[test]" - name: Code formatting run: | - pip install black + pip install black==20.8b1 black --check . - name: Test with pytest run: | diff --git a/kloppy/utils.py b/kloppy/utils.py index 81fd179e..e4a700cb 100644 --- a/kloppy/utils.py +++ b/kloppy/utils.py @@ -47,7 +47,7 @@ def camelcase_to_snakecase(name): def removes_suffix(string, suffix): - if string[-len(suffix):] == suffix: + if string[-len(suffix) :] == suffix: return string[: -len(suffix)] else: return string