diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 6644ceb4..e805d59c 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.34.0 +current_version = 0.35.0 commit = False tag = False diff --git a/CHANGELOG.md b/CHANGELOG.md index 002f1a2a..13b01de5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,25 @@ +# [0.35.0](https://github.com/andreoliwa/nitpick/compare/v0.34.0...v0.35.0) (2023-12-31) + +### Bug Fixes + +- **deps:** update dependency click to v8.1.7 ([783741d](https://github.com/andreoliwa/nitpick/commit/783741dad71cf1a1e82faec55872dc347c297e35)) +- fail when no style is explicitly configured (don't use the default style) ([#606](https://github.com/andreoliwa/nitpick/issues/606)) ([f309354](https://github.com/andreoliwa/nitpick/commit/f30935440c4d4a1e87413a0ce4d0a6e875dcfd06)) +- **style:** better .editorconfig ([0b779d9](https://github.com/andreoliwa/nitpick/commit/0b779d967ae14a0ae4e47b426767ea48426a4d31)) +- **style:** comma_separated_values for flake8/isort ([7336dbc](https://github.com/andreoliwa/nitpick/commit/7336dbc397416a17df278e096d7807a099e314aa)) +- **style:** move "build" to readthedocs.toml ([676ac24](https://github.com/andreoliwa/nitpick/commit/676ac2450ab6e7fce597a020b7b260fe90e18206)) +- **style:** remove Radon from the Nitpick preset ([126b1c1](https://github.com/andreoliwa/nitpick/commit/126b1c10db033e66b2f2d4386bf8d4342d6557c4)) +- **style:** tag markdownlint.toml as a markdown style ([578bfb5](https://github.com/andreoliwa/nitpick/commit/578bfb5795f543e8590e86bac6174391249675d1)) +- **style:** use black mirror that's 2x faster ([67dc163](https://github.com/andreoliwa/nitpick/commit/67dc16353edd0f275ac68bb5cc75159574b5f426)) + +### Features + +- add Python 3.12 ([#616](https://github.com/andreoliwa/nitpick/issues/616)) ([90ced4c](https://github.com/andreoliwa/nitpick/commit/90ced4cd2e308c4f0be2a284d7acff7bdf1a8448)) +- set CLI options with environment variables ([3575b9a](https://github.com/andreoliwa/nitpick/commit/3575b9a542281810c1ce980df50053ea1ec6a290)) +- **style:** add toml-sort ([#626](https://github.com/andreoliwa/nitpick/issues/626)) ([a4aeef7](https://github.com/andreoliwa/nitpick/commit/a4aeef7c9eaac86d6a33ddbd3b5735de11c065b0)) +- **style:** default Python version on pre-commit ([3557c1f](https://github.com/andreoliwa/nitpick/commit/3557c1f18d6be6886f0642e11333f1dff52ae9b7)) +- **style:** Poetry (virtualenv in project) ([f002b8b](https://github.com/andreoliwa/nitpick/commit/f002b8ba6fc79ed00d50426d70193bad4065db95)) +- suggest styles based on the file types in the project ([#629](https://github.com/andreoliwa/nitpick/issues/629)) ([e2bca24](https://github.com/andreoliwa/nitpick/commit/e2bca246e142b9e06766d0522e1cee24a8c1bc07)) + # [0.34.0](https://github.com/andreoliwa/nitpick/compare/v0.33.2...v0.34.0) (2023-08-19) ### Features diff --git a/README.rst b/README.rst index 44438bba..92533b27 100644 --- a/README.rst +++ b/README.rst @@ -373,11 +373,11 @@ Run ~~~ Nitpick_ will fail if no style is explicitly configured. -Run this command to download and use the opinionated :gitref:`default style file `: +Run this command to download and use the opinionated `default style file `: nitpick init -You can use it as a template to :ref:`configure-your-own-style`. +You can use it as a template to `configure-your-own-style`. To fix and modify your files directly:: @@ -399,7 +399,7 @@ this to the ``.pre-commit-config.yaml`` in your repository:: repos: - repo: https://github.com/andreoliwa/nitpick - rev: v0.34.0 + rev: v0.35.0 hooks: - id: nitpick @@ -425,7 +425,7 @@ If you use `MegaLinter `_ you can run Nitpick as .. code-block:: yaml PLUGINS: - - https://raw.githubusercontent.com/andreoliwa/nitpick/v0.34.0/mega-linter-plugin-nitpick/nitpick.megalinter-descriptor.yml + - https://raw.githubusercontent.com/andreoliwa/nitpick/v0.35.0/mega-linter-plugin-nitpick/nitpick.megalinter-descriptor.yml ENABLE_LINTERS: - NITPICK diff --git a/docs/conf.py b/docs/conf.py index c14c4c23..2c450a98 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -19,7 +19,7 @@ author = "W. Augusto Andreoli" # The short X.Y version -version = "0.34.0" +version = "0.35.0" # The full version, including alpha/beta/rc tags release = version diff --git a/docs/configuration.rst b/docs/configuration.rst index 50ca72dd..1b681cb7 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -49,9 +49,9 @@ GitHub URL scheme (``github://`` or ``gh://``) pinned to a specific version: .. code-block:: toml [tool.nitpick] - style = "github://andreoliwa/nitpick@v0.34.0/nitpick-style.toml" + style = "github://andreoliwa/nitpick@v0.35.0/nitpick-style.toml" # or - style = "gh://andreoliwa/nitpick@v0.34.0/nitpick-style.toml" + style = "gh://andreoliwa/nitpick@v0.35.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``: @@ -78,14 +78,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.34.0/nitpick-style.toml" + style = "https://github.com/andreoliwa/nitpick/blob/v0.35.0/nitpick-style.toml" Or use the raw GitHub URL directly: .. code-block:: toml [tool.nitpick] - style = "https://raw.githubusercontent.com/andreoliwa/nitpick/v0.34.0/nitpick-style.toml" + style = "https://raw.githubusercontent.com/andreoliwa/nitpick/v0.35.0/nitpick-style.toml" You can also use the raw URL of a `GitHub Gist `_: diff --git a/docs/quickstart.rst b/docs/quickstart.rst index b47889bd..5ca7fab0 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -64,7 +64,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.34.0 + rev: v0.35.0 hooks: - id: nitpick-suggest - id: nitpick @@ -107,7 +107,7 @@ If you use `MegaLinter `_ you can run Nitpick as .. code-block:: yaml PLUGINS: - - https://raw.githubusercontent.com/andreoliwa/nitpick/v0.34.0/mega-linter-plugin-nitpick/nitpick.megalinter-descriptor.yml + - https://raw.githubusercontent.com/andreoliwa/nitpick/v0.35.0/mega-linter-plugin-nitpick/nitpick.megalinter-descriptor.yml ENABLE_LINTERS: - NITPICK diff --git a/mega-linter-plugin-nitpick/nitpick.megalinter-descriptor.yml b/mega-linter-plugin-nitpick/nitpick.megalinter-descriptor.yml index 390a5dfc..b247f2a0 100644 --- a/mega-linter-plugin-nitpick/nitpick.megalinter-descriptor.yml +++ b/mega-linter-plugin-nitpick/nitpick.megalinter-descriptor.yml @@ -13,7 +13,7 @@ linters: name: NITPICK install: dockerfile: - - RUN pip install nitpick==0.34.0 + - RUN pip install nitpick==0.35.0 examples: - "nitpick check" - "nitpick fix" diff --git a/nitpick-style.toml b/nitpick-style.toml index fdca0430..c363096c 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.34.0/nitpick-style.toml +# https://github.com/andreoliwa/nitpick/blob/v0.35.0/nitpick-style.toml # Kept here for compatibility, if someone is still accessing the file via GitHub URL. # This style just includes the built-in preset shipped with Nitpick. diff --git a/package.json b/package.json index edc9886c..fe96ab73 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nitpick", - "version": "0.34.0", + "version": "0.35.0", "repository": { "type": "git", "url": "https://github.com/andreoliwa/nitpick.git" diff --git a/pyproject.toml b/pyproject.toml index ef67fd7a..3bffe515 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,7 @@ license = "MIT" name = "nitpick" readme = "README.rst" repository = "https://github.com/andreoliwa/nitpick" -version = "0.34.0" +version = "0.35.0" [tool.poetry.dependencies] attrs = ">=20.1.0" # attr.define introduced in this version diff --git a/src/nitpick/__init__.py b/src/nitpick/__init__.py index 0b6e8912..58fa0c8a 100644 --- a/src/nitpick/__init__.py +++ b/src/nitpick/__init__.py @@ -5,6 +5,6 @@ from nitpick.core import Nitpick __all__ = ("Nitpick",) -__version__ = "0.34.0" +__version__ = "0.35.0" logger.disable(PROJECT_NAME)