From e186ef15e9647b5f3246f9e257e227e1c5663ee2 Mon Sep 17 00:00:00 2001 From: Gonny Date: Fri, 19 Feb 2021 13:18:37 +0200 Subject: [PATCH 1/2] fix: add extend-ignore = E203 This is needed as we are now using black code style which may raise E203. --- tox.ini | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 77e3612e..c90c1e13 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -skipsdist=True +skipsdist = True envlist = cov, flake8 [testenv] @@ -24,7 +24,7 @@ commands = flake8 tests -# pytest Configuration +# Pytest Configuration [pytest] junit_family = xunit2 testpaths = tests @@ -32,8 +32,12 @@ filterwarnings = ignore:.*'collections'.*'collections.abc'.*:DeprecationWarning ignore:Task.all_tasks() is deprecated, use asyncio.all_tasks().*:PendingDeprecationWarning + # Flake8 Configuration [flake8] # gettext() adds _() to the global namespace. This lets flake recognize it. builtins = _, + +# https://github.com/psf/black/blob/master/docs/the_black_code_style.md#slices +extend-ignore = E203 From 5e7c12ecaf7a36d434cf5b4db15ea7fe830a22df Mon Sep 17 00:00:00 2001 From: Gonny Date: Fri, 19 Feb 2021 13:21:03 +0200 Subject: [PATCH 2/2] fix: grammar --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index c90c1e13..34198fa9 100644 --- a/tox.ini +++ b/tox.ini @@ -24,7 +24,7 @@ commands = flake8 tests -# Pytest Configuration +# Pytest configuration [pytest] junit_family = xunit2 testpaths = tests @@ -33,7 +33,7 @@ filterwarnings = ignore:Task.all_tasks() is deprecated, use asyncio.all_tasks().*:PendingDeprecationWarning -# Flake8 Configuration +# Flake8 configuration [flake8] # gettext() adds _() to the global namespace. This lets flake recognize it. builtins =