Skip to content
Advertisement

Tag: devops

How to run pylint only on changed files in Gitlab?

I’m trying to run pylint only on changed python files, but my build keeps failing. I have extracted the changed files through git diff and saved them in a variable, but when I inject the variable into the pylint call, it fails. It works fine with a hardcoded filename however. Here is my yaml: Answer While qathulu answer is adequate,

How can I specify requirements for development separately from actual application dependencies? In a Python project and in general?

We have dependencies required for local development that we’d like to specify in our project for the sake of other developers. These dependencies are not actually required by the application though. In python we specify dependencies that the app need in a requirements.txt. What is the best practice for specifying/pinning development specific (not required by the app) dependencies and packages?

Advertisement