Skip to content

Resolve testing issues#16

Merged
tk0miya merged 6 commits into
blockdiag:masterfrom
flying-foozy:resolve-testing-issues
Nov 17, 2019
Merged

Resolve testing issues#16
tk0miya merged 6 commits into
blockdiag:masterfrom
flying-foozy:resolve-testing-issues

Conversation

@flying-foozy

Copy link
Copy Markdown
Contributor

This series resolves issues at testing below:

  • errors/warning with recent flake8
  • dependency configuration around setup.py/tox.ini

Unfortunately, some failures below occur even after this series.

This commit makes flake8 ignore "line break after binary operator"
(W504), as same as blockdiag.
This commit explicitly specifies exception type at "except" statement,
in order to avoid flake8 error "do not use bare 'except'" (E722).
This commit adds 'r' prefix to string literals, which use invalid
escape sequence ('\d', '\s', and '\.'), in order to avoid flake8
warning "invalid escape sequence" (W605).

This changes should be safe enough, because none of 'r' prefixed
string literals contain any valid escape sequence (e.g. '\n', '\\',
and so on).
This dropping should be reasonable, because blockdiag already did so.

This changes simplify subsequent changes for tox.ini.
This commit follows dependency configuration style of blockdiag, as
below:

  - list up dependencies for testing in setup.py instead of tox.ini,
    and specify "[testenv] extras" to install them before testing

  - enable "[testenv] usedevelop"

    without this, tox fails before testing because "docutils" is not
    available, if executed on plain environment.

This commit still keeps empty "[testenv] deps", because this is
referred by "[testenv:blockdiag_dev] deps".
@tk0miya

tk0miya commented Nov 17, 2019

Copy link
Copy Markdown
Contributor

Thanks!

@tk0miya
tk0miya merged commit 049563a into blockdiag:master Nov 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants