Closed Aveline-art closed 1 week ago
Related issue: #587
Note: This docker code from Ida's PR #587, that came from the main
branch (written by Matt Pereira over a year ago) would enable the python linter in dev mode:
linter:
profiles: ["lint"]
build:
context: .
dockerfile: ./dev/linter.dockerfile
container_name: linter
environment:
- PRE_COMMIT_HOME=${HOME}/.cache/pre-commit
user: ${UID}:${GID}
env_file:
- ./dev/linter.env
volumes:
- .:/src:rw
- ${HOME}/.cache:${HOME}/.cache:rw
I need to investigate this further.
The benefit of having a docker container for linting the backend is that no one will have to install the specific version of python or poetry or all the vscode python linter extensions, which can be overly complicated for new devs.
Things to keep in mind:
pre-commit
config + hooks through the docker container. Not sure how I feel about this yet.linter.env
file specifically for the pre-commitdevelop
branch)linters/
folder in the .github/
folder. I need to investigate what this is for.Idea
develop
now and the linter config that was in main
beforeNext step: Add python and eslint automations to CI/CD pipeline #611
Overview
As a developer, we should make sure that our code is maintainable. For this ticket, let's start a discussion on whether linting python code is desirable.
Action Items
Resources/Instructions
Resources
This has never been up for consideration previously, since vscode did not have native support for python linting, meaning that we needed to download them as libraries, which would impact our build size. Now two things have changed: