From 8a1d2bd0a0b2c6a4bcef33a51e59a024a6e61f2d Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 14 Jan 2022 01:37:23 +0000 Subject: [PATCH] chore(release): 0.30.0 [skip ci] # [0.30.0](https://github.com/andreoliwa/nitpick/compare/v0.29.0...v0.30.0) (2022-01-14) ### Bug Fixes * style override on Windows ([#422](https://github.com/andreoliwa/nitpick/issues/422)) ([e7d2897](https://github.com/andreoliwa/nitpick/commit/e7d2897096df3ab868c97b68d915191b488e83bf)) * use current dir; don't climb dirs to find the project root ([#421](https://github.com/andreoliwa/nitpick/issues/421)) ([3c82e8c](https://github.com/andreoliwa/nitpick/commit/3c82e8c4d019a5b25e1c0d9db1792f72cf800305)) ### Features * default pre-commit hook now runs "nitpick fix" ([cb4c242](https://github.com/andreoliwa/nitpick/commit/cb4c242607c6810c629dc7f5604920c1b64a070e)) * **json:** autofix JSON files ([#429](https://github.com/andreoliwa/nitpick/issues/429)) ([4b58a03](https://github.com/andreoliwa/nitpick/commit/4b58a0380f88b01c99945817e7ff9b595ea362aa)) * nitpick init adds a [tool.nitpick] section ([36f4065](https://github.com/andreoliwa/nitpick/commit/36f4065483b1ec4308bc28b815c82aa0abac104c)) * **yaml:** autofix .pre-commit-config.yaml (note: style changed!) ([#434](https://github.com/andreoliwa/nitpick/issues/434)) ([352b53d](https://github.com/andreoliwa/nitpick/commit/352b53d574e49ca683666fd40de3462d1396e575)) * **yaml:** autofix GitHub Workflow files ([#437](https://github.com/andreoliwa/nitpick/issues/437)) ([6af77c4](https://github.com/andreoliwa/nitpick/commit/6af77c4293d8f964ccd249626d47c82440e6412f)) * **yaml:** autofix YAML files ([#431](https://github.com/andreoliwa/nitpick/issues/431)) ([d8cc4b1](https://github.com/andreoliwa/nitpick/commit/d8cc4b1e80366d475c08316c54dc35393b4430dd)) --- .bumpversion.cfg | 2 +- CHANGELOG.md | 18 +++++++++++ README.rst | 4 +-- docs/conf.py | 2 +- docs/configuration.rst | 8 ++--- docs/examples.rst | 66 ++++++++++++++++++++--------------------- 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, 65 insertions(+), 47 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index dbbe96db..78fd1e0b 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.29.0 +current_version = 0.30.0 commit = False tag = False diff --git a/CHANGELOG.md b/CHANGELOG.md index 532988f2..cf15eaf7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,21 @@ +# [0.30.0](https://github.com/andreoliwa/nitpick/compare/v0.29.0...v0.30.0) (2022-01-14) + + +### Bug Fixes + +* style override on Windows ([#422](https://github.com/andreoliwa/nitpick/issues/422)) ([e7d2897](https://github.com/andreoliwa/nitpick/commit/e7d2897096df3ab868c97b68d915191b488e83bf)) +* use current dir; don't climb dirs to find the project root ([#421](https://github.com/andreoliwa/nitpick/issues/421)) ([3c82e8c](https://github.com/andreoliwa/nitpick/commit/3c82e8c4d019a5b25e1c0d9db1792f72cf800305)) + + +### Features + +* default pre-commit hook now runs "nitpick fix" ([cb4c242](https://github.com/andreoliwa/nitpick/commit/cb4c242607c6810c629dc7f5604920c1b64a070e)) +* **json:** autofix JSON files ([#429](https://github.com/andreoliwa/nitpick/issues/429)) ([4b58a03](https://github.com/andreoliwa/nitpick/commit/4b58a0380f88b01c99945817e7ff9b595ea362aa)) +* nitpick init adds a [tool.nitpick] section ([36f4065](https://github.com/andreoliwa/nitpick/commit/36f4065483b1ec4308bc28b815c82aa0abac104c)) +* **yaml:** autofix .pre-commit-config.yaml (note: style changed!) ([#434](https://github.com/andreoliwa/nitpick/issues/434)) ([352b53d](https://github.com/andreoliwa/nitpick/commit/352b53d574e49ca683666fd40de3462d1396e575)) +* **yaml:** autofix GitHub Workflow files ([#437](https://github.com/andreoliwa/nitpick/issues/437)) ([6af77c4](https://github.com/andreoliwa/nitpick/commit/6af77c4293d8f964ccd249626d47c82440e6412f)) +* **yaml:** autofix YAML files ([#431](https://github.com/andreoliwa/nitpick/issues/431)) ([d8cc4b1](https://github.com/andreoliwa/nitpick/commit/d8cc4b1e80366d475c08316c54dc35393b4430dd)) + # [0.29.0](https://github.com/andreoliwa/nitpick/compare/v0.28.0...v0.29.0) (2021-11-08) ### Bug Fixes diff --git a/README.rst b/README.rst index 43a05f4a..bb2eb6c7 100644 --- a/README.rst +++ b/README.rst @@ -210,7 +210,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. @@ -222,7 +222,7 @@ this to the ``.pre-commit-config.yaml`` in your repository:: repos: - repo: https://github.com/andreoliwa/nitpick - rev: v0.29.0 + rev: v0.30.0 hooks: - id: nitpick diff --git a/docs/conf.py b/docs/conf.py index d205a1fa..698f98b7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,7 +18,7 @@ author = "W. Augusto Andreoli" # The short X.Y version -version = "0.29.0" +version = "0.30.0" # The full version, including alpha/beta/rc tags release = version diff --git a/docs/configuration.rst b/docs/configuration.rst index c6763eff..335011d3 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.29.0/nitpick-style.toml" + style = "github://andreoliwa/nitpick@v0.30.0/nitpick-style.toml" # or - style = "gh://andreoliwa/nitpick@v0.29.0/nitpick-style.toml" + style = "gh://andreoliwa/nitpick@v0.30.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.29.0/nitpick-style.toml" + style = "https://github.com/andreoliwa/nitpick/blob/v0.30.0/nitpick-style.toml" Or use the raw GitHub URL directly: .. code-block:: toml [tool.nitpick] - style = "https://raw.githubusercontent.com/andreoliwa/nitpick/v0.29.0/nitpick-style.toml" + style = "https://raw.githubusercontent.com/andreoliwa/nitpick/v0.30.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 60d604a1..792eef7b 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`), codeclimate_ ------------ -Contents of `resources/any/codeclimate.toml `_: +Contents of `resources/any/codeclimate.toml `_: .. code-block:: toml @@ -44,7 +44,7 @@ Contents of `resources/any/codeclimate.toml `_: +Contents of `resources/any/commitizen.toml `_: .. code-block:: toml @@ -60,7 +60,7 @@ Contents of `resources/any/commitizen.toml `_: +Contents of `resources/any/commitlint.toml `_: .. code-block:: @@ -86,7 +86,7 @@ Contents of `resources/any/commitlint.toml `_: +Contents of `resources/any/editorconfig.toml `_: .. code-block:: toml @@ -129,7 +129,7 @@ Contents of `resources/any/editorconfig.toml `_: +Contents of `resources/any/git-legal.toml `_: .. code-block:: toml @@ -141,7 +141,7 @@ Contents of `resources/any/git-legal.toml `_: +Contents of `resources/any/hooks.toml `_: .. code-block:: toml @@ -165,7 +165,7 @@ Contents of `resources/any/hooks.toml `_: +Contents of `resources/any/markdownlint.toml `_: .. code-block:: toml @@ -178,7 +178,7 @@ Contents of `resources/any/markdownlint.toml `_: +Contents of `resources/any/prettier.toml `_: .. code-block:: toml @@ -194,7 +194,7 @@ Contents of `resources/any/prettier.toml `_: +Contents of `resources/javascript/package-json.toml `_: .. code-block:: toml @@ -206,7 +206,7 @@ Contents of `resources/javascript/package-json.toml `_: +Contents of `resources/python/310.toml `_: .. code-block:: toml @@ -218,7 +218,7 @@ Contents of `resources/python/310.toml `_: +Contents of `resources/python/36.toml `_: .. code-block:: toml @@ -230,7 +230,7 @@ Contents of `resources/python/36.toml `_: +Contents of `resources/python/37.toml `_: .. code-block:: toml @@ -242,7 +242,7 @@ Contents of `resources/python/37.toml `_: +Contents of `resources/python/38.toml `_: .. code-block:: toml @@ -254,7 +254,7 @@ Contents of `resources/python/38.toml `_: +Contents of `resources/python/39.toml `_: .. code-block:: toml @@ -266,7 +266,7 @@ Contents of `resources/python/39.toml `_: +Contents of `resources/python/absent.toml `_: .. code-block:: toml @@ -283,7 +283,7 @@ Contents of `resources/python/absent.toml `_: +Contents of `resources/python/autoflake.toml `_: .. code-block:: toml @@ -299,7 +299,7 @@ Contents of `resources/python/autoflake.toml `_: +Contents of `resources/python/bandit.toml `_: .. code-block:: toml @@ -320,7 +320,7 @@ Contents of `resources/python/bandit.toml `_: +Contents of `resources/python/black.toml `_: .. code-block:: toml @@ -346,7 +346,7 @@ Contents of `resources/python/black.toml `_: +Contents of `resources/python/flake8.toml `_: .. code-block:: toml @@ -377,7 +377,7 @@ Contents of `resources/python/flake8.toml `_: +Contents of `resources/python/github-workflow.toml `_: .. code-block:: toml @@ -419,7 +419,7 @@ Contents of `resources/python/github-workflow.toml `_: +Contents of `resources/python/hooks.toml `_: .. code-block:: toml @@ -458,7 +458,7 @@ Contents of `resources/python/hooks.toml `_: +Contents of `resources/python/ipython.toml `_: .. code-block:: toml @@ -471,7 +471,7 @@ Contents of `resources/python/ipython.toml `_: +Contents of `resources/python/isort.toml `_: .. code-block:: toml @@ -499,7 +499,7 @@ Contents of `resources/python/isort.toml `_: +Contents of `resources/python/mypy.toml `_: .. code-block:: toml @@ -533,7 +533,7 @@ Contents of `resources/python/mypy.toml `_: +Contents of `resources/python/poetry.toml `_: .. code-block:: toml @@ -545,7 +545,7 @@ Contents of `resources/python/poetry.toml `_: +Contents of `resources/python/pylint.toml `_: .. code-block:: toml @@ -627,7 +627,7 @@ Contents of `resources/python/pylint.toml `_: +Contents of `resources/python/radon.toml `_: .. code-block:: toml @@ -642,7 +642,7 @@ Contents of `resources/python/radon.toml `_: +Contents of `resources/python/readthedocs.toml `_: .. code-block:: toml @@ -664,7 +664,7 @@ Contents of `resources/python/readthedocs.toml `_: +Contents of `resources/python/sonar-python.toml `_: .. code-block:: toml @@ -677,7 +677,7 @@ Contents of `resources/python/sonar-python.toml `_: +Contents of `resources/python/stable.toml `_: .. code-block:: toml @@ -692,7 +692,7 @@ Contents of `resources/python/stable.toml `_: +Contents of `resources/python/tox.toml `_: .. code-block:: toml @@ -730,7 +730,7 @@ Contents of `resources/python/tox.toml `_: +Contents of `resources/shell/bashate.toml `_: .. code-block:: toml @@ -748,7 +748,7 @@ Contents of `resources/shell/bashate.toml `_: +Contents of `resources/shell/shellcheck.toml `_: .. code-block:: toml diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 83c13662..7a384570 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.29.0 + rev: v0.30.0 hooks: - id: nitpick diff --git a/docs/targets.rst b/docs/targets.rst index 941fe6ba..64e94cae 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.29.0/nitpick-style.toml +.. _default style file: https://github.com/andreoliwa/nitpick/blob/v0.30.0/nitpick-style.toml .. Keep items sorted alphabetically from here (using Pycharm, even tough it's case-sensitive): diff --git a/nitpick-style.toml b/nitpick-style.toml index 11aefe62..f9f59c31 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.29.0/nitpick-style.toml +# https://github.com/andreoliwa/nitpick/blob/v0.30.0/nitpick-style.toml [nitpick] minimum_version = "0.10.0" diff --git a/package.json b/package.json index 5af191ac..6ed87219 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nitpick", - "version": "0.29.0", + "version": "0.30.0", "repository": { "type": "git", "url": "https://github.com/andreoliwa/nitpick.git" diff --git a/pyproject.toml b/pyproject.toml index 03e6e5ee..153c8b1b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ line-length = 120 [tool.poetry] name = "nitpick" -version = "0.29.0" +version = "0.30.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 a2f4ad24..1c09d762 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.29.0" +__version__ = "0.30.0" logger.disable(PROJECT_NAME)