From a75f48a034ce5b3f66beaf11fc17962fa82dfeaf Mon Sep 17 00:00:00 2001 From: Adrian Moennich Date: Wed, 28 Jul 2021 12:19:17 +0200 Subject: [PATCH] Add dev tool configs --- payment_sixpay/.flake8 | 29 +++++++++++++++++++++++++++++ payment_sixpay/.isort.cfg | 8 ++++++++ 2 files changed, 37 insertions(+) create mode 100644 payment_sixpay/.flake8 create mode 100644 payment_sixpay/.isort.cfg diff --git a/payment_sixpay/.flake8 b/payment_sixpay/.flake8 new file mode 100644 index 0000000..b7cdb63 --- /dev/null +++ b/payment_sixpay/.flake8 @@ -0,0 +1,29 @@ +[flake8] +max-line-length = 120 + +# colored output +format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s + +# decent quote styles +inline-quotes = single +multiline-quotes = single +docstring-quotes = double +avoid-escape = true + +extend-exclude = + build + dist + docs + htmlcov + *.egg-info + node_modules + .*/ + +ignore = + # allow omitting whitespace around arithmetic operators + E226 + # don't require specific wrapping before/after binary operators + W503 + W504 + # allow assigning lambdas (it's useful for single-line functions defined inside other functions) + E731 diff --git a/payment_sixpay/.isort.cfg b/payment_sixpay/.isort.cfg new file mode 100644 index 0000000..d780987 --- /dev/null +++ b/payment_sixpay/.isort.cfg @@ -0,0 +1,8 @@ +[isort] +line_length=120 +multi_line_output=0 +lines_after_imports=2 +sections=FUTURE,STDLIB,THIRDPARTY,INDICO,FIRSTPARTY,LOCALFOLDER +known_third_party=flask_multipass,flask_pluginengine +known_indico=indico +skip_glob=20??????????_*_*.py