Skip to content

v0.8.0

Compare
Choose a tag to compare
@andreoliwa andreoliwa released this 04 Mar 10:21
· 781 commits to master since this release
ee227f1

Bug Fixes

  • keep showing other errors when pyproject.toml doesn't exist (dc7f02f)
  • move nitpick config to an exclusive section on the style file (cd64361)
  • use only yield to return values (af7d8d2)
  • use yaml.safe_load() (b1df589)

build

Features

  • allow configuration of a missing message for each file (fd053aa)
  • allow multiple style files (22505ce)
  • Check root keys on pre-commit file (e.g.: fail_fast) (9470aed)
  • invalidate cache on every run (e985a0a)
  • suggest initial contents for missing setup.cfg (8d33b18)
  • suggest installing poetry (5b6038c)
  • pre-commit: suggest pre-commit install (76b980f)

Tests

BREAKING CHANGES

  • Comma separated values was moved to a different section in the TOML file:

Before:
["setup.cfg".nitpick]
comma_separated_values = ["food.eat"]

Now:
[nitpick.files."setup.cfg"]
comma_separated_values = ["food.eat"]

  • The format of the absent files has changed in the style TOML file.

Before:
[[files.absent]]
file = "remove-this.txt"
message = "This file should be removed because of some reason"
[[files.absent]]
file = "another-useless-file-without-message.cfg"

Now:
[nitpick.files.absent]
"remove-this.txt" = "This file should be removed because of some reason"
"another-useless-file-without-message.cfg" = ""