06. Linting and CircleCI
Linting and CircleCI
ND9991 C04 L02 A05 Linting And Circle CI
You can find Noah's code here. Note that the Makefile used in the video is the one in the class-demos directory, while he changes into the subdirectory within demos after that.
Using CircleCI
Here are the steps Noah took in the above video:
- Added to the Makefile:
validate-circleci:
circleci config process .circleci/config.yml
run-circleci-local:
circleci local execute
lint: # This line should already be there with regular pylint
hadolint path/to/Dockerfile
- Runs
hadolint Dockerfile - Uses the
config.ymlfile within a.circlecidirectory - In the parent directory, runs
make run-circleci-localto simulate what will happen in the remote CircleCI environment - Uses the CircleCI website (a related blog post is linked below) to test remotely
Reference
- Increase reliability in data science and machine learning projects with CircleCI: LINK
Hadolint