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

Code style maintenance #222

Merged
merged 7 commits into from
Jul 14, 2024

Conversation

JiriPavela
Copy link
Collaborator

This PR fixes #117 and #126.

Docstrings now shouldn't contain any type annotations that could be in conflict with the inline code annotations (it is possible that some docstring type hints still remain in the codebase - please remove them if you find them).

Pre-commit support for our code formatter Black was added, as well as pre-commit checks for trailing whitespaces and missing end-of-lines. make dev now installs pre-commit plugins during the setup, so contributors should have it up and running without any additional installation steps (consider re-running make dev after this PR is merged).

We should consider enabling https://pre-commit.ci/ for the Perun repo, as it will run our pre-commit checks for PRs even if someone opts-out of pre-commit locally. No additional setup should be needed, the usual pre-commit config file is enough, unless we want to change something specifically for PRs.

Please merge this only after #221 is merged.

We can now use newer scipy with its `simpson` integration method.
All dependencies are now bumped to their most recent version that
still supports Python 3.9.
@JiriPavela JiriPavela requested a review from tfiedor July 6, 2024 18:06
@tfiedor tfiedor merged commit 024089b into Perfexionists:devel Jul 14, 2024
12 checks passed
@JiriPavela JiriPavela deleted the code-style-maintenance branch August 13, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove type hints in function docstrings.
2 participants