Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis CI black --check #640

Open
TheSuperNoob opened this issue Mar 2, 2020 · 1 comment
Open

Travis CI black --check #640

TheSuperNoob opened this issue Mar 2, 2020 · 1 comment

Comments

@TheSuperNoob
Copy link

@TheSuperNoob TheSuperNoob commented Mar 2, 2020

Is there a reason why in travis CI config the command black --check . || true is run? I don't see the point in checking if files needs to be reformatted if it's just going to be ignored anyways.

Currently running black --line-length 127 --check . -> 399 files would be reformatted, 74 files would be left unchanged.

In addition running flake8 . --count --show-source --statistics --max-line-length=127 Yields 2496 errors which is reduced to 746 after reformatting using black --line-length 127 .

As a side note it might be a good idea to run pytest/doctest/unittest here too to make sure tests are passing.

@Andrew-Chen-Wang
Copy link

@Andrew-Chen-Wang Andrew-Chen-Wang commented Jun 20, 2020

Seems like the PR #551 put it in before_script simply because "It will not make every build (from this PR)" fail. Sometimes, for some repos, good style may make the meaning behind the code illegible, which may be the case here... However, I just strolled into this repo, so I can't give concreteness to that previous statement.

Addressing the side note, the Tox env is already doing the testing with pytest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.