-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Move isort/lint commands out of test runner #5819
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
Conversation
0288e9f
to
e465358
Compare
I don't know if anyone is particularly attached to running isort/flake8 through the test runner. |
e0e5a24
to
fa2392e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense.
In the long run we should get completely rid of runtests.py.
We have had this talk before and @tomchristie said no. Can't remember the argument though.
Yes I am. Removing it seems a good way to just discard it simply. |
TBH I don't really see the point of this change (or the problem with Let me close this for now. But I'm happy to discuss it a bit here so we can air the pros and cons. It's easy enough to re-open. (OK?) |
I really like this change, since it removes an unnecessary wrapper (the custom
Do you mean that isort gets not checked then anymore? |
The intent was to fix a minor annoyance with running isort. The test runner doesn't pass command line arguments to isort, so if you want to use Alternatively, We could add the |
In general, it doesn't seem necessary to integrate linting and sorting into the test runner. This method complicates running isort with specific options, such as
--diff
. Moving the command into tox simplifies this, and options can be provided after the--
options separator. eg,Note that the lint travis build runs both the
isort
andlint
builds.