From b588b0b729a2bf543e7390f40f3fc2f6b5c7398c Mon Sep 17 00:00:00 2001 From: Lie Ryan Date: Mon, 28 Nov 2022 00:45:25 +1100 Subject: [PATCH] Add flake8 config file --- setup.cfg | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 setup.cfg diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 000000000..84bae7b71 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,15 @@ +[flake8] +extend-ignore = + # F841: local variable `name` is assigned to but never used + # while useful as a warning while writing code, the workarounds to avoid + # getting this error is often worst than the original problem + F841 + + # E203: whitespace before ':' + # this rule contradicts black codestyle + E203 + +max-line-length = 110 + +[pycodestyle] +max-line-length = 110