Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pylint/pre-commit configuration #463

Merged
merged 1 commit into from
Jan 26, 2024
Merged

Fix pylint/pre-commit configuration #463

merged 1 commit into from
Jan 26, 2024

Conversation

smartspot2
Copy link
Member

With the changes in #457, psycopg2-binary is no longer installed by default in development systems (it causes a lot of setup issues). However, pylint_django requires a working Django backend in order to provide linting, which now errors due to a lack of the psycopg2 package.

This PR modifies the pre-commit configuration to run pylint in Docker instead, as the Docker container has all of the backend dependencies installed. The pre-commit configuration also still had the old --with=dev flag, which is now swapped to --with=prod.

@smartspot2 smartspot2 added bug Something isn't working dependencies Pull requests that update a dependency file labels Dec 23, 2023
@smartspot2 smartspot2 self-assigned this Dec 23, 2023
Copy link

cypress bot commented Dec 23, 2023

Passing run #295 ↗︎

0 78 0 0 Flakiness 0

Details:

Move pylint to use docker, modify pre-commit ci
Project: csm_web Commit: 2f54de5a7a
Status: Passed Duration: 01:48 💡
Started: Jan 26, 2024 5:09 AM Ended: Jan 26, 2024 5:11 AM

Review all test suite changes for PR #463 ↗︎

Copy link
Contributor

@edwardneo edwardneo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jacovkim
Copy link

Looks good to me too!

@smartspot2 smartspot2 merged commit 2f54de5 into master Jan 26, 2024
16 checks passed
@smartspot2 smartspot2 deleted the fix/pylint branch January 26, 2024 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants