Skip to content

Releases: andreoliwa/nitpick

v0.10.0

11 Mar 01:20
5329903
Compare
Choose a tag to compare

Features

  • assume style has a .toml extension when it's missing (5a584ac)
  • read local style files from relative and other root dirs (82d3675)
  • read relative styles in subdirectories of a symlink dir (55634e1)
  • read styles from relative paths on URLs (46d1b84)

v0.9.0

06 Mar 14:20
555aabc
Compare
Choose a tag to compare

Features

  • improve error messages (8a1ea4e)
  • minimum required version on style file (4090cdc)
  • one style file can include another (also recursively) (d963a8d)

v0.8.1

04 Mar 13:20
c77fbc8
Compare
Choose a tag to compare

Bug Fixes

  • setup.cfg: comma separated values check failing on pre-commit (27a37b6)
  • setup.cfg: comma separated values still failing on pre-commit, only on the first run (36ea6f0)

v0.8.0

04 Mar 10:21
ee227f1
Compare
Choose a tag to compare

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" = ""

v0.7.1

14 Feb 23:30
80b14b1
Compare
Choose a tag to compare

Bug Fixes

  • Missing flake8 entry point on pyproject.toml (a416007)

v0.7.0

14 Feb 16:37
887cdf7
Compare
Choose a tag to compare

Features

  • Suggest initial contents for missing .pre-commit-config.yaml (16a6256)

v0.6.0

28 Jan 12:59
ef95d50
Compare
Choose a tag to compare

build

  • Ignore .tox dir on flake8 and isort (462233e)
  • Update packages (36bd5ba)

ci

  • Add code coverage with Coveralls (#5) (3995e13), closes #5
  • Fix Coveralls badge (point to master) (bae533d)
  • Run flake8 and pytest on Travis (dbb6000)

docs

  • Add more info to pyproject.toml (1e0d1a2)

feat

  • Configure comma separated values on the style file (7ae6622)
  • Suggest poetry init when pyproject.toml does not exist (366c2b6)

fix

  • DeprecationWarning: Using or importing the ABCs from 'collections' in (80f7e24)

style

  • Ignore build dir on flake8 and isort (1c18ce3)
  • Ignore tox dir (flake8), set tests module as first party (isort) (4fbad20)

test

  • Comma separated keys on setup.cfg (flake8.ignore) (b5d8ce7)
  • No main Python file on the root dir (f67f870)
  • Test a project with no root dir (6ccf977)
  • Test most generic functions (3704c9f)

v0.5.0

09 Jan 19:50
81dc002
Compare
Choose a tag to compare

build

  • Add flake8-quotes (7c39870)
  • Bump version in pyproject.toml (eef3d3d)
  • Create but don't push git tag, it is needed by the changelog (f60382f)

feat

  • Add .venv to the absent files list (153a7ca)
  • Add flake8-quotes to the default style (60b3726)

v0.4.0

07 Jan 17:40
8f384f6
Compare
Choose a tag to compare

feat

  • Check files that should not exist (like .isort.cfg) (1901bb8)
  • Check pre-commit config file and the presence of hooks (b1333db)
  • Warn about replacing requirements.txt by pyproject.toml (dacb091)

fix

  • Don't break when pyproject.toml or setup.cfg don't exist (6a546c1)
  • Only check rules if the file exists (66e42d2)

refactor

  • Check absence of pipenv files using the .toml config (4002015)
  • Remove should_exist_default, consider existence of a config (8b22926)
  • Use a mixin with a base error number for each class (bb7e73d)

v0.3.0

07 Jan 17:16
1c5d9e0
Compare
Choose a tag to compare

feat

  • Show different key/value pairs on pyproject.toml, case insensitive b (30e03eb)

fix

  • KeyError when section does not exist on setup.cfg (e652604)