Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 696 Bytes

File metadata and controls

34 lines (23 loc) · 696 Bytes

nitpick-style

Nitpick style configuration for python projects

How to use

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.

Local

Add the following to pyproject.toml. Change the version if needed.

[tool.nitpick]
style = [
    "https://raw.githubusercontent.com/invian/nitpick/master/nitpick-38.toml",
]

Pre-commit hook

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