From f160fa17be8008f481916198697cbfb3aa80dcaf Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 20 Jul 2021 22:57:41 +0000 Subject: [PATCH] chore(release): 0.27.0 [skip ci] # [0.27.0](https://github.com/andreoliwa/nitpick/compare/v0.26.0...v0.27.0) (2021-07-20) ### Bug Fixes * **cli:** print "no violations" message ([2fedd0a](https://github.com/andreoliwa/nitpick/commit/2fedd0a8b252972e06301cb1491054917af556d9)) * **cli:** replace the "run" command by "fix" and "check" ([#359](https://github.com/andreoliwa/nitpick/issues/359)) ([34d2499](https://github.com/andreoliwa/nitpick/commit/34d24993fed4de40c029d676a434761c19029860)) * don't fail when there is no config/root file ([#350](https://github.com/andreoliwa/nitpick/issues/350)) ([cca099a](https://github.com/andreoliwa/nitpick/commit/cca099a146f212d0e9ea2df26c12bfbc59706e80)) * include of remote style when there is only a local style ([#349](https://github.com/andreoliwa/nitpick/issues/349)) ([032855d](https://github.com/andreoliwa/nitpick/commit/032855dbd29f5ca9ddcc3a04ee93af13554d5afc)) * run pre-commit hooks only on passed files ([#356](https://github.com/andreoliwa/nitpick/issues/356)) ([3db024a](https://github.com/andreoliwa/nitpick/commit/3db024aa1f64972d9cc1d43c86a1eeb1632482aa)) ### Features * accept a regular GitHub URL as a style ([#361](https://github.com/andreoliwa/nitpick/issues/361)) ([8fc34cb](https://github.com/andreoliwa/nitpick/commit/8fc34cb32529d5f192a0433969563c70e32020a2)) * enforce settings on any TOML file ([#352](https://github.com/andreoliwa/nitpick/issues/352)) ([8fd6324](https://github.com/andreoliwa/nitpick/commit/8fd632459982d8df1456a33f24df5803234ba492)) * fetch GitHub URLs directly ([#341](https://github.com/andreoliwa/nitpick/issues/341)) ([d3e6811](https://github.com/andreoliwa/nitpick/commit/d3e6811c5c74307f0c618e5636f9043f0995f25b)) * install on macOS with Homebrew ([c679adf](https://github.com/andreoliwa/nitpick/commit/c679adf47e46fe89165b9a4d5158a38f30223550)) * pre-commit hook to apply changes ([#322](https://github.com/andreoliwa/nitpick/issues/322)) ([5e98e5f](https://github.com/andreoliwa/nitpick/commit/5e98e5fcda32d1fe40939bf3abd4e6e5da00e9ba)) * quick setup with `nitpick init` command ([#347](https://github.com/andreoliwa/nitpick/issues/347)) ([3156afe](https://github.com/andreoliwa/nitpick/commit/3156afe3ba9666a460b5ac84cfd82ab74a26605b)) * read configuration from `.nitpick.toml` or `pyproject.toml` ([#332](https://github.com/andreoliwa/nitpick/issues/332)) ([612ae41](https://github.com/andreoliwa/nitpick/commit/612ae41c6d0a71fd85ca0e37c136e3381978ec8c)) * root files for other programming languages ([#321](https://github.com/andreoliwa/nitpick/issues/321)) ([09a0e83](https://github.com/andreoliwa/nitpick/commit/09a0e838946a4b7cb615968fb524a9e18326cd7c)) * support custom protocols for styles ([#333](https://github.com/andreoliwa/nitpick/issues/333)) ([9baef63](https://github.com/andreoliwa/nitpick/commit/9baef630609f9c0b72acee5174494c652205a491)) --- .bumpversion.cfg | 2 +- CHANGELOG.md | 22 ++++++++++++++++++++++ README.rst | 4 ++-- docs/conf.py | 2 +- docs/configuration.rst | 8 ++++---- docs/examples.rst | 40 ++++++++++++++++++++-------------------- docs/quickstart.rst | 2 +- docs/targets.rst | 2 +- nitpick-style.toml | 2 +- package.json | 2 +- pyproject.toml | 2 +- src/nitpick/__init__.py | 2 +- 12 files changed, 56 insertions(+), 34 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index eddceb12..1678bc73 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.26.0 +current_version = 0.27.0 commit = False tag = False diff --git a/CHANGELOG.md b/CHANGELOG.md index a4ae22ec..db5ed85d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,25 @@ +# [0.27.0](https://github.com/andreoliwa/nitpick/compare/v0.26.0...v0.27.0) (2021-07-20) + +### Bug Fixes + +- **cli:** print "no violations" message ([2fedd0a](https://github.com/andreoliwa/nitpick/commit/2fedd0a8b252972e06301cb1491054917af556d9)) +- **cli:** replace the "run" command by "fix" and "check" ([#359](https://github.com/andreoliwa/nitpick/issues/359)) ([34d2499](https://github.com/andreoliwa/nitpick/commit/34d24993fed4de40c029d676a434761c19029860)) +- don't fail when there is no config/root file ([#350](https://github.com/andreoliwa/nitpick/issues/350)) ([cca099a](https://github.com/andreoliwa/nitpick/commit/cca099a146f212d0e9ea2df26c12bfbc59706e80)) +- include of remote style when there is only a local style ([#349](https://github.com/andreoliwa/nitpick/issues/349)) ([032855d](https://github.com/andreoliwa/nitpick/commit/032855dbd29f5ca9ddcc3a04ee93af13554d5afc)) +- run pre-commit hooks only on passed files ([#356](https://github.com/andreoliwa/nitpick/issues/356)) ([3db024a](https://github.com/andreoliwa/nitpick/commit/3db024aa1f64972d9cc1d43c86a1eeb1632482aa)) + +### Features + +- accept a regular GitHub URL as a style ([#361](https://github.com/andreoliwa/nitpick/issues/361)) ([8fc34cb](https://github.com/andreoliwa/nitpick/commit/8fc34cb32529d5f192a0433969563c70e32020a2)) +- enforce settings on any TOML file ([#352](https://github.com/andreoliwa/nitpick/issues/352)) ([8fd6324](https://github.com/andreoliwa/nitpick/commit/8fd632459982d8df1456a33f24df5803234ba492)) +- fetch GitHub URLs directly ([#341](https://github.com/andreoliwa/nitpick/issues/341)) ([d3e6811](https://github.com/andreoliwa/nitpick/commit/d3e6811c5c74307f0c618e5636f9043f0995f25b)) +- install on macOS with Homebrew ([c679adf](https://github.com/andreoliwa/nitpick/commit/c679adf47e46fe89165b9a4d5158a38f30223550)) +- pre-commit hook to apply changes ([#322](https://github.com/andreoliwa/nitpick/issues/322)) ([5e98e5f](https://github.com/andreoliwa/nitpick/commit/5e98e5fcda32d1fe40939bf3abd4e6e5da00e9ba)) +- quick setup with `nitpick init` command ([#347](https://github.com/andreoliwa/nitpick/issues/347)) ([3156afe](https://github.com/andreoliwa/nitpick/commit/3156afe3ba9666a460b5ac84cfd82ab74a26605b)) +- read configuration from `.nitpick.toml` or `pyproject.toml` ([#332](https://github.com/andreoliwa/nitpick/issues/332)) ([612ae41](https://github.com/andreoliwa/nitpick/commit/612ae41c6d0a71fd85ca0e37c136e3381978ec8c)) +- root files for other programming languages ([#321](https://github.com/andreoliwa/nitpick/issues/321)) ([09a0e83](https://github.com/andreoliwa/nitpick/commit/09a0e838946a4b7cb615968fb524a9e18326cd7c)) +- support custom protocols for styles ([#333](https://github.com/andreoliwa/nitpick/issues/333)) ([9baef63](https://github.com/andreoliwa/nitpick/commit/9baef630609f9c0b72acee5174494c652205a491)) + # [0.26.0](https://github.com/andreoliwa/nitpick/compare/v0.25.0...v0.26.0) (2021-03-16) ### Features diff --git a/README.rst b/README.rst index e3874491..88a53a4a 100644 --- a/README.rst +++ b/README.rst @@ -221,7 +221,7 @@ with at least one Python (``.py``) file:: flake8 . Nitpick will download and use the opinionated `default style -file `__. +file `__. You can use it as a template to configure your own style. @@ -233,7 +233,7 @@ this to the ``.pre-commit-config.yaml`` in your repository:: repos: - repo: https://github.com/andreoliwa/nitpick - rev: v0.26.0 + rev: v0.27.0 hooks: - id: nitpick diff --git a/docs/conf.py b/docs/conf.py index 323aaa59..ededa781 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,7 +18,7 @@ author = "W. Augusto Andreoli" # The short X.Y version -version = "0.26.0" +version = "0.27.0" # The full version, including alpha/beta/rc tags release = version diff --git a/docs/configuration.rst b/docs/configuration.rst index f759e94c..61c4e406 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -39,9 +39,9 @@ GitHub URL scheme (``github://`` or ``gh://``) pinned to a specific version: .. code-block:: toml [tool.nitpick] - style = "github://andreoliwa/nitpick@v0.26.0/nitpick-style.toml" + style = "github://andreoliwa/nitpick@v0.27.0/nitpick-style.toml" # or - style = "gh://andreoliwa/nitpick@v0.26.0/nitpick-style.toml" + style = "gh://andreoliwa/nitpick@v0.27.0/nitpick-style.toml" The ``@`` syntax is used to get a Git reference (commit, tag, branch). It is similar to the syntax used by ``pip`` and ``pipx``: @@ -68,14 +68,14 @@ A regular GitHub URL also works. The corresponding raw URL will be used. .. code-block:: toml [tool.nitpick] - style = "https://github.com/andreoliwa/nitpick/blob/v0.26.0/nitpick-style.toml" + style = "https://github.com/andreoliwa/nitpick/blob/v0.27.0/nitpick-style.toml" Or use the raw GitHub URL directly: .. code-block:: toml [tool.nitpick] - style = "https://raw.githubusercontent.com/andreoliwa/nitpick/v0.26.0/nitpick-style.toml" + style = "https://raw.githubusercontent.com/andreoliwa/nitpick/v0.27.0/nitpick-style.toml" You can also use the raw URL of a `GitHub Gist `_: diff --git a/docs/examples.rst b/docs/examples.rst index 614b1942..8c442529 100644 --- a/docs/examples.rst +++ b/docs/examples.rst @@ -18,7 +18,7 @@ You can use these examples directly with their URL (see :ref:`multiple_styles`), Absent files ------------ -Contents of `styles/absent-files.toml `_: +Contents of `styles/absent-files.toml `_: .. code-block:: toml @@ -35,7 +35,7 @@ Contents of `styles/absent-files.toml `_: +Contents of `styles/black.toml `_: .. code-block:: toml @@ -67,7 +67,7 @@ Contents of `styles/black.toml `_: +Contents of `styles/editorconfig.toml `_: .. code-block:: toml @@ -107,7 +107,7 @@ Contents of `styles/editorconfig.toml `_: +Contents of `styles/flake8.toml `_: .. code-block:: toml @@ -151,7 +151,7 @@ Contents of `styles/flake8.toml `_: +Contents of `styles/ipython.toml `_: .. code-block:: toml @@ -164,7 +164,7 @@ Contents of `styles/ipython.toml `_: +Contents of `styles/isort.toml `_: .. code-block:: toml @@ -193,7 +193,7 @@ Contents of `styles/isort.toml `_: +Contents of `styles/mypy.toml `_: .. code-block:: toml @@ -226,7 +226,7 @@ Contents of `styles/mypy.toml `_: +Contents of `styles/package-json.toml `_: .. code-block:: @@ -247,7 +247,7 @@ Contents of `styles/package-json.toml `_: +Contents of `styles/poetry.toml `_: .. code-block:: toml @@ -259,7 +259,7 @@ Contents of `styles/poetry.toml `_: +Contents of `styles/pre-commit/bash.toml `_: .. code-block:: toml @@ -276,7 +276,7 @@ Contents of `styles/pre-commit/bash.toml `_: +Contents of `styles/pre-commit/commitlint.toml `_: .. code-block:: toml @@ -295,7 +295,7 @@ Contents of `styles/pre-commit/commitlint.toml `_: +Contents of `styles/pre-commit/general.toml `_: .. code-block:: toml @@ -313,7 +313,7 @@ Contents of `styles/pre-commit/general.toml `_: +Contents of `styles/pre-commit/main.toml `_: .. code-block:: toml @@ -328,7 +328,7 @@ Contents of `styles/pre-commit/main.toml `_: +Contents of `styles/pre-commit/python.toml `_: .. code-block:: toml @@ -354,7 +354,7 @@ Contents of `styles/pre-commit/python.toml `_: +Contents of `styles/pylint.toml `_: .. code-block:: toml @@ -418,7 +418,7 @@ Contents of `styles/pylint.toml `_: +Contents of `styles/python36.toml `_: .. code-block:: toml @@ -430,7 +430,7 @@ Contents of `styles/python36.toml `_: +Contents of `styles/python37.toml `_: .. code-block:: toml @@ -442,7 +442,7 @@ Contents of `styles/python37.toml `_: +Contents of `styles/python38.toml `_: .. code-block:: toml @@ -454,7 +454,7 @@ Contents of `styles/python38.toml `_: +Contents of `styles/python39.toml `_: .. code-block:: toml @@ -466,7 +466,7 @@ Contents of `styles/python39.toml `_: +Contents of `styles/tox.toml `_: .. code-block:: toml diff --git a/docs/quickstart.rst b/docs/quickstart.rst index b903c7b3..0f5c442b 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -61,7 +61,7 @@ If you use pre-commit_ on your project, add this to the ``.pre-commit-config.yam repos: - repo: https://github.com/andreoliwa/nitpick - rev: v0.26.0 + rev: v0.27.0 hooks: - id: nitpick diff --git a/docs/targets.rst b/docs/targets.rst index d2d01b31..9abbc197 100644 --- a/docs/targets.rst +++ b/docs/targets.rst @@ -1,7 +1,7 @@ .. Different anchors pointing to the same URL: .. _nitpick-style.toml: -.. _default style file: https://github.com/andreoliwa/nitpick/blob/v0.26.0/nitpick-style.toml +.. _default style file: https://github.com/andreoliwa/nitpick/blob/v0.27.0/nitpick-style.toml .. Sort alphabetically from here: diff --git a/nitpick-style.toml b/nitpick-style.toml index fc48280f..c6b1bc57 100644 --- a/nitpick-style.toml +++ b/nitpick-style.toml @@ -1,5 +1,5 @@ # Default style file for nitpick -# https://github.com/andreoliwa/nitpick/blob/v0.26.0/nitpick-style.toml +# https://github.com/andreoliwa/nitpick/blob/v0.27.0/nitpick-style.toml [nitpick] minimum_version = "0.10.0" diff --git a/package.json b/package.json index d8c6cc9f..2bfde775 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nitpick", - "version": "0.26.0", + "version": "0.27.0", "repository": { "type": "git", "url": "https://github.com/andreoliwa/nitpick.git" diff --git a/pyproject.toml b/pyproject.toml index 8ae50448..fa27bbaa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ line-length = 120 [tool.poetry] name = "nitpick" -version = "0.26.0" +version = "0.27.0" description = "Enforce the same settings across multiple language-independent projects" authors = ["W. Augusto Andreoli "] license = "MIT" diff --git a/src/nitpick/__init__.py b/src/nitpick/__init__.py index 47731a0c..19fae4a2 100644 --- a/src/nitpick/__init__.py +++ b/src/nitpick/__init__.py @@ -5,6 +5,6 @@ from nitpick.core import Nitpick # noqa: F401 __all__ = ("Nitpick",) -__version__ = "0.26.0" +__version__ = "0.27.0" logger.disable(PROJECT_NAME)