From: Leonid Vasiliev <lvasiliev@tarantool.org> To: sergeyb@tarantool.org, tarantool-patches@dev.tarantool.org Cc: alexander.turenko@tarantool.org Subject: Re: [Tarantool-patches] [PATCH 4/6] add initial flake8 config Date: Wed, 9 Dec 2020 23:57:23 +0300 [thread overview] Message-ID: <c576f6d5-9d57-9780-901f-bdfd60325b5b@tarantool.org> (raw) In-Reply-To: <182d1ca7f245c252c5d1b70416c5b25564f7bee0.1607326642.git.sergeyb@tarantool.org> Hi! Thank you for the patch. Add subsystem to commit title. This seems like an overkill to me, because, if I understand correctly, we didn't plan to write new tests on python for tarantool. I propose to discuss this with Alexander after the standup. On 07.12.2020 10:46, sergeyb@tarantool.org wrote: > From: Sergey Bronnikov <sergeyb@tarantool.org> > > flake8 configuration file supress warnings, that can be fixed later. > Supressed warnings can be splitted for three categories and for each of them > separate issue exists: > > - Fix warnings Exx: #5599 > - Fix warnings Fxx: #5598 > - Fix warnings Wxx: #5597 > --- > .flake8 | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 66 insertions(+) > create mode 100644 .flake8 > > diff --git a/.flake8 b/.flake8 > new file mode 100644 > index 000000000..249970226 > --- /dev/null > +++ b/.flake8 > @@ -0,0 +1,66 @@ > +[flake8] > +inline-quotes = " > +statistics = True > +select = Q0 > +exclude = test/test-run.py > +ignore = > + # E111: indentation is not a multiple of four > + E111, > + # E123: closing bracket does not match indentation of opening bracket's line > + E123, > + # E126: continuation line over-indented for hanging indent > + E126, > + # E128: continuation line under-indented for visual indent > + E128, > + # E201: whitespace after '(' > + E201, > + # E202: whitespace before ')' > + E202, > + # E203: whitespace before ':' > + E203, > + # E225: missing whitespace around operator > + E225, > + # E226: missing whitespace around arithmetic operator > + E226, > + # E231: missing whitespace after ',', ';' or ':' > + E231, > + # E241: multiple spaces after ',' > + E241, > + # E251: unexpected spaces around keyword / parameter equals > + E251, > + # E261: at least two spaces before inline comment > + E261, > + # E265: block comment should start with '#' > + E265, > + # E266: too many leading '#' for block comment > + E266, > + # E302: expected 2 blank lines, found 0 > + E302, > + # E305: expected 2 blank lines after end of function or class > + E305, > + # E402: module level import not at top of file > + E402, > + # E501: line too long (82 > 79 characters) > + E501, > + # E502: the backslash is redundant between brackets > + E502, > + # E703: statement ends with a semicolon > + E703, > + # E722: do not use bare except, specify exception instead > + E722, > + # F401: module imported but unused > + F401, > + # F403: 'from module import *' used; unable to detect undefined names > + F403, > + # F405: name may be undefined, or defined from star imports: module > + F405, > + # F821: undefined name name > + F821, > + # F841: local variable name is assigned to but never used > + F841, > + # W291: trailing whitespace > + W291, > + # W391: blank line at end of file > + W391, > + # W605: invalid escape sequence 'x' > + W605 >
next prev parent reply other threads:[~2020-12-09 20:58 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-12-07 7:46 [Tarantool-patches] [PATCH 0/6] Support Python 3 in tests and PEPify source code sergeyb 2020-12-07 7:46 ` [Tarantool-patches] [PATCH 1/6] test: support Python 3 and make quotes use consistent sergeyb 2020-12-09 15:58 ` Leonid Vasiliev 2020-12-10 13:23 ` Sergey Bronnikov 2020-12-10 13:29 ` Sergey Bronnikov 2020-12-07 7:46 ` [Tarantool-patches] [PATCH 2/6] test: remove dead code in Python tests end extra newline sergeyb 2020-12-09 20:20 ` Leonid Vasiliev 2020-12-07 7:46 ` [Tarantool-patches] [PATCH 3/6] test: remove empty print() functions sergeyb 2020-12-09 20:27 ` Leonid Vasiliev 2020-12-10 13:26 ` Sergey Bronnikov 2020-12-07 7:46 ` [Tarantool-patches] [PATCH 4/6] add initial flake8 config sergeyb 2020-12-09 20:57 ` Leonid Vasiliev [this message] 2020-12-07 7:46 ` [Tarantool-patches] [PATCH 5/6] cmake: add integration with flake8 sergeyb 2020-12-07 7:46 ` [Tarantool-patches] [PATCH 6/6] ci: enable flake8 sergeyb
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=c576f6d5-9d57-9780-901f-bdfd60325b5b@tarantool.org \ --to=lvasiliev@tarantool.org \ --cc=alexander.turenko@tarantool.org \ --cc=sergeyb@tarantool.org \ --cc=tarantool-patches@dev.tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH 4/6] add initial flake8 config' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox