From f176b020451592dfb6b25fb6d2f8a471b459cabc Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Thu, 25 Jun 2020 18:01:15 -0400 Subject: [PATCH] Add flake8 config --- Makefile | 4 ++-- setup.cfg | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 setup.cfg diff --git a/Makefile b/Makefile index 2cd84019..ab0bfa3e 100644 --- a/Makefile +++ b/Makefile @@ -61,8 +61,8 @@ test-py3: build check: # Static analysis - flake8 --max-complexity=10 src/dependency_injector/ - flake8 --max-complexity=10 examples/ + flake8 src/dependency_injector/ + flake8 examples/ # Code style analysis pydocstyle src/dependency_injector/ pydocstyle examples/ diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 00000000..28c9f30b --- /dev/null +++ b/setup.cfg @@ -0,0 +1,3 @@ +[flake8] +max_line_length = 99 +max_complexity = 10