bluebird75 / luaunit

LuaUnit is a popular unit-testing framework for Lua, with an interface typical of xUnit libraries (Python unittest, Junit, NUnit, ...). It supports several output formats (Text, TAP, JUnit, ...) to be used directly or work with Continuous Integration platforms (Jenkins, Maven, ...).
Other
565 stars 136 forks source link

use black to pass flake8 for py file #134

Closed waketzheng closed 3 years ago

waketzheng commented 3 years ago

Use black to reformat python file

pip install --user toml black flake8
black doit.py
coveralls commented 3 years ago

Coverage Status

Coverage decreased (-0.2%) to 98.294% when pulling fe97b4682535eb2b5309cd73c3d469ebd6ac01ab on waketzheng:flake8 into d992a6035fd085cee795357430c7d3dac73c5a7f on bluebird75:master.

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 98.47% when pulling b5489ca333eb50706de445cedb4a3bc17ed1b1a6 on waketzheng:flake8 into 64c1748a4c3ace8c5d39aa1fda8c311e009a8460 on bluebird75:master.

bluebird75 commented 3 years ago

Thanks for the contribution.

Can you remove the pyproject file ? I don't see the interest here

waketzheng commented 3 years ago

Nice. I use .flake8 to replace pyproject file, and flake8 complaint nothing now.

bluebird75 commented 3 years ago

I don't want to introduce new files. There are already too many files at the root of this project. So, can we have it without the .flake8 file ?

waketzheng commented 3 years ago

Sure~ And you can run the following command at the root of this project. So that flake8 will pass next time.

echo -e '[flake8]\nmax-line-length=150\nextend-ignore=E401\nexclude=doc/' > .flake8 && echo .flake8 >> .git/info/exclude