Closed SongYunSeop closed 4 years ago
@john-bodley But black
requires Python 3.6+
https://github.com/psf/black/blob/master/setup.py#L6
@SongYunSeop maybe it's time to remove the pre-Python 3.6 dependency (@mistercrunch or @gianm may want to chime in here). Note Python 3.5 is slated to reach end-of-life on 2020-09-13 and many packages (including Flask and Superset) now have requirements of 3.6+.
@john-bodley I totally agree with you.
@mistercrunch @john-bodley Can you review this PR please? 🙏
I have a problem with using black and flake8 in CI. how did you fix the black linter with these flake8 rules? e.g. E203
@MSadeghzadehG do you experience the same CI issues when running tox
locally, i.e.,
tox -e black flake8
I don't use tox; I just run black .
and then flake8
and it shows many issues related to black code style. because it doesn't match to the flake8 rules.
Does tox relate to fixing these issues?
If you run tox
, per the environment definition all the necessary requirements will be installed and the black
(or similar) command will be run with the appropriate arguments. These are the same commands which Travis CI executes.
@MSadeghzadehG @john-bodley I checked just for now. Is this your faced error message?
pydruid/utils/postaggregator.py:16:1: E302 expected 2 blank lines, found 0
If then, you can fixed it after add 2 black lines at postaggregator.py:16
.
I run both flake8 pydruid
and black pydruid
@SongYunSeop It's just an example of black code style conflicts with flake8 rules. Also In the black repo, some rules were ignored
Fixes #211