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

Update pre-commit hooks #14

Merged
merged 2 commits into from
Sep 7, 2023
Merged

Update pre-commit hooks #14

merged 2 commits into from
Sep 7, 2023

Conversation

CasperWA
Copy link
Collaborator

@CasperWA CasperWA commented Sep 7, 2023

Update the existing pre-commit hook versions.

Also, update codebase according to a run with the new versions.
Some issues were found with mypy and pydantic concerning the create_model() function, which doesn't seem to be registerring correctly in mypy. Either that or I missed something crucial.

The use of lambda functions should be reevaluated as well (new issue opened #15).

Silence pydantic-specific mypy call outs.
An issue must be created to address the lambda call outs from pylint in
dataspace_factory.py
@CasperWA CasperWA requested a review from quaat September 7, 2023 06:27
@CasperWA CasperWA added the BLOCKING This issue/PR is blocking further development label Sep 7, 2023
Copy link
Collaborator

@quaat quaat left a comment

Choose a reason for hiding this comment

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

Can you just double-check if the expression if not Path(data_model).resolve().exists: is actually wrong?

@CasperWA
Copy link
Collaborator Author

CasperWA commented Sep 7, 2023

Can you just double-check if the expression if not Path(data_model).resolve().exists: is actually wrong?

It is, exists is a method (callable), not a property apparently :/ Python docs.

@CasperWA CasperWA merged commit fba4fea into main Sep 7, 2023
3 checks passed
@CasperWA CasperWA deleted the cwa/update-pre-commit-hooks branch September 7, 2023 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BLOCKING This issue/PR is blocking further development
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants