You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Jiri Daněk (Jira)" <ji...@apache.org> on 2021/08/03 09:26:00 UTC

[jira] [Updated] (DISPATCH-1974) Fix and remove ignores in flake8 configuration

     [ https://issues.apache.org/jira/browse/DISPATCH-1974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jiri Daněk updated DISPATCH-1974:
---------------------------------
    Description: 
Fixes with autopep8 in DISPATCH-1814 resolved many flake8 warnings. There are still warnings left that require human consideration and fixing.

For example, usage of bare {{except}} in the code.

This must be fixed manually. Fixed issues should then be removed from the tox.ini flake8 ignore section.

h3. list of "useful" suppressed warnings

{code}
    # H101: Use TODO(NAME)
    # H202: assertRaises Exception too broad
    # E722: do not use bare 'except'
    # H201: no 'except:' at least use 'except Exception:'
    # F811 redefinition of unused 'Timeout' from line 29
    # F405: may be undefined, or defined from star imports: datetime
{code}

  was:
Fixes with autopep8 in DISPATCH-1814 resolved many flake8 warnings. There are still warnings left that require human consideration and fixing.

For example, usage of bare {{except}} in the code.

This must be fixed manually. Fixed issues should then be removed from the tox.ini flake8 ignore section.


> Fix and remove ignores in flake8 configuration
> ----------------------------------------------
>
>                 Key: DISPATCH-1974
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1974
>             Project: Qpid Dispatch
>          Issue Type: Improvement
>    Affects Versions: 1.16.0
>            Reporter: Jiri Daněk
>            Priority: Major
>             Fix For: Backlog
>
>
> Fixes with autopep8 in DISPATCH-1814 resolved many flake8 warnings. There are still warnings left that require human consideration and fixing.
> For example, usage of bare {{except}} in the code.
> This must be fixed manually. Fixed issues should then be removed from the tox.ini flake8 ignore section.
> h3. list of "useful" suppressed warnings
> {code}
>     # H101: Use TODO(NAME)
>     # H202: assertRaises Exception too broad
>     # E722: do not use bare 'except'
>     # H201: no 'except:' at least use 'except Exception:'
>     # F811 redefinition of unused 'Timeout' from line 29
>     # F405: may be undefined, or defined from star imports: datetime
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org