Linting Python Projects
To format your python code to be in compliance with the linting rules, the following command can be used:
To lint your python project locally, the following command can be used:
To lint your python project automatically in a ci-cd pipeline, add the following to the include section of your
- project: 'ska-telescope/templates-repository'
Then, make sure to define the
lint stage in your
.gitlab-ci.yml file as well:
This will automatically include and run the python linting template on your pipeline.