Closed thompson318 closed 4 years ago
In GitLab by @MattClarkson on Dec 21, 2018, 23:06
changed title from {-S-}hould lint be done in a separate environment? to {+In PythonTemplate, s+}hould lint be done in a separate environment?
In GitLab by @MattClarkson on Dec 21, 2018, 23:06
moved from WEISS/SoftwareRepositories/PythonTemplate#35
In GitLab by @MattClarkson on Dec 22, 2018, 06:54
I came to the conclusion "yes" it should be in a separate virtualenv.
If you put pylint in with say py27, then someone else decides you dont need py27, they would probably edit tox.ini, and before long pylint would not run, or people would forget about it.
Best keep them all separate, as its safer in the long run.
In GitLab by @MattClarkson on Dec 22, 2018, 06:54
closed
In GitLab by @TomDoel on Dec 22, 2018, 10:28
Also makes it a bit clearer whether errors are caused by the tests or linting, and also allows you to invoke listing or tests separately using ‘tox -e lint’ or similar (useful for local development, say you’re fixing linting problems and don’t want to keep running the tests).
In GitLab by @MattClarkson on Dec 21, 2018, 17:03
On windows setting up a new environment takes significantly longer than Linux and Mac.
Is it necessary just for linting?
@TomDoel, @ThomasDowrick, @StephenThompson - any reason why its like this?