From cac909e14765425c252e9b001531c6c62928a9be Mon Sep 17 00:00:00 2001 From: Christopher Baklid Date: Tue, 21 Jun 2022 22:16:16 +0200 Subject: [PATCH 1/2] Add flake8 config This ensures IDEs like vscode does not give flake8 warnings that should otherwise have been ignored. --- Makefile | 2 +- tox.ini | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 tox.ini diff --git a/Makefile b/Makefile index 88f681d..2929236 100644 --- a/Makefile +++ b/Makefile @@ -104,7 +104,7 @@ lint: ## run linters against the package mypy rethinkdb bandit -q -r rethinkdb pylint rethinkdb - flake8 rethinkdb --count --ignore=E203,E501,W503 --show-source --statistics + flake8 rethinkdb --count --show-source --statistics .PHONY: ql2.proto ql2.proto: ## download and convert protobuf file diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..0ea253c --- /dev/null +++ b/tox.ini @@ -0,0 +1,5 @@ +[flake8] +ignore=E203,E501,W503 +max-line-length=88 +application_import_names=rethinkdb +exclude = .git,__pycache__,tests From 8fa7867eb510b55a0b2ff251d7312aec8fa93a4b Mon Sep 17 00:00:00 2001 From: Christopher Baklid Date: Wed, 22 Jun 2022 07:23:47 +0200 Subject: [PATCH 2/2] rename tox.ini to .flake8 --- tox.ini => .flake8 | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename tox.ini => .flake8 (100%) diff --git a/tox.ini b/.flake8 similarity index 100% rename from tox.ini rename to .flake8