Nitpick style configuration for python projects
You are expected to have pyproject.toml
with configurations for each tool used here.
This file must be in the root directory of your repository.
Add the following to pyproject.toml
. Change the version if needed.
[tool.nitpick]
style = [
"https://raw.githubusercontent.com/invian/nitpick/master/nitpick-38.toml",
]
Add the following to repos
in .pre-commit-config.yaml
.
- repo: https://github.com/andreoliwa/nitpick
rev: v0.35.0
hooks:
- id: nitpick
Now simply run it as a pre-commit hook, or directly via python -m nitpick