[meld/precommit: 10/11] Add final flake8 ignores
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld/precommit: 10/11] Add final flake8 ignores
- Date: Sat, 5 Oct 2019 22:02:17 +0000 (UTC)
commit f62794aa759de3997cd9ab248ca5a711d5846d4d
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Oct 6 07:29:15 2019 +1000
Add final flake8 ignores
With this commit, pre-commit flake8 now passes. This only required so
many changes because our previous flake8 config didn't actually apply
all of the rules (specifically import order and naming) and didn't apply
to all our code.
Now we're running flake8 (though somewhat leniently) on all relevant
files, and using isort for import order sorting.
setup.cfg | 6 ++++++
test/conftest.py | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/setup.cfg b/setup.cfg
index 276cc076..bbe7f57d 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -4,6 +4,12 @@
exclude =
build_helpers.py
+per-file-ignores =
+ maint:E501
+ meson_post_install.py:E501
+ setup.py:E501
+ setup_win32.py:E501
+ test/*:E501
# build_helpers is almost entirely distutils interactions, which have
diff --git a/test/conftest.py b/test/conftest.py
index 3af68aa0..3c0977d8 100644
--- a/test/conftest.py
+++ b/test/conftest.py
@@ -18,7 +18,7 @@ def default_icon_theme():
@pytest.fixture(autouse=True)
def template_resources():
- import gi
+ import gi # noqa: F401
with mock.patch(
'gi._gtktemplate.validate_resource_path',
mock.Mock(return_value=True)):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]