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

Add pre-commit config for linting and formatting #77

Merged
merged 3 commits into from
Mar 20, 2024

Conversation

pederhan
Copy link
Member

@pederhan pederhan commented Mar 20, 2024

This PR adds a pre-commit config which sets up Git hooks for linting and formatting.

Python files are linted and formatted with Ruff, while the pyproject.toml file is linted with validate-pyproject. YAML files are checked with the default pre-commit hooks.

This PR will generate a rather large diff, since the pre-commit hooks were run on all files with pre-commit run --all-files.

@pederhan pederhan changed the title Add pre-commit config Add pre-commit config for linting and formatting Mar 20, 2024
@pederhan pederhan merged commit d85d8b4 into unioslo:master Mar 20, 2024
3 checks passed
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.

1 participant