The [tool.nitpick] sectionΒΆ

The style file for your project should be configured in the [tool.nitpick] section of your pyproject.toml file.

You can configure your own style like this:

[tool.nitpick]
style = "/path/to/your-style-file.toml"

You can set style with any local file or URL. E.g.: you can use the raw URL of a GitHub Gist.

Using a file in your home directory:

[tool.nitpick]
style = "~/some/path/to/another-style.toml"

You can also use multiple styles and mix local files and URLs:

[tool.nitpick]
style = [
    "/path/to/first.toml",
    "/another/path/to/second.toml",
    "https://example.com/on/the/web/third.toml"
]

The order is important: each style will override any keys that might be set by the previous .toml file. If a key is defined in more than one file, the value from the last file will prevail.