From 72f33541e6cf590bcf1684fe2557369514b26dae Mon Sep 17 00:00:00 2001 From: semantic-release-bot <semantic-release-bot@martynus.net> Date: Fri, 18 Sep 2020 02:35:15 +0000 Subject: [PATCH] chore(release): 0.23.0 [skip ci] # [0.23.0](https://github.com/andreoliwa/nitpick/compare/v0.22.2...v0.23.0) (2020-09-18) ### Bug Fixes * get uiri/toml@9be6458 to fix conflict with black@20.8b1 ([fd2a44a](https://github.com/andreoliwa/nitpick/commit/fd2a44aedf253b0b73acec82b4c86b3fe3cc343f)), closes [#200](https://github.com/andreoliwa/nitpick/issues/200) ### Features * check if a text file contains lines ([#182](https://github.com/andreoliwa/nitpick/issues/182)) ([3173bf7](https://github.com/andreoliwa/nitpick/commit/3173bf7380ef7b4e8221060cb575d606f6f4af2c)) * detect JSON files by extension, no need to declare them first ([6f54480](https://github.com/andreoliwa/nitpick/commit/6f544807867acc1b9234721000bf4c73838b5e72)) * use a plugin system (experimental) ([#180](https://github.com/andreoliwa/nitpick/issues/180)) ([6d2df4f](https://github.com/andreoliwa/nitpick/commit/6d2df4ffd156d9585c6a29bc7498a89e9b59ce16)) --- CHANGELOG.md | 14 ++++++ README.md | 4 +- docs/conf.py | 2 +- docs/installation_guide.rst | 2 +- docs/targets.rst | 2 +- nitpick-style.toml | 2 +- package.json | 2 +- pyproject.toml | 2 +- setup.cfg | 85 +++++++++++++++---------------------- src/nitpick/__init__.py | 2 +- 10 files changed, 58 insertions(+), 59 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 80c3ea1a..a655de81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ +# [0.23.0](https://github.com/andreoliwa/nitpick/compare/v0.22.2...v0.23.0) (2020-09-18) + + +### Bug Fixes + +* get uiri/toml@9be6458 to fix conflict with black@20.8b1 ([fd2a44a](https://github.com/andreoliwa/nitpick/commit/fd2a44aedf253b0b73acec82b4c86b3fe3cc343f)), closes [#200](https://github.com/andreoliwa/nitpick/issues/200) + + +### Features + +* check if a text file contains lines ([#182](https://github.com/andreoliwa/nitpick/issues/182)) ([3173bf7](https://github.com/andreoliwa/nitpick/commit/3173bf7380ef7b4e8221060cb575d606f6f4af2c)) +* detect JSON files by extension, no need to declare them first ([6f54480](https://github.com/andreoliwa/nitpick/commit/6f544807867acc1b9234721000bf4c73838b5e72)) +* use a plugin system (experimental) ([#180](https://github.com/andreoliwa/nitpick/issues/180)) ([6d2df4f](https://github.com/andreoliwa/nitpick/commit/6d2df4ffd156d9585c6a29bc7498a89e9b59ce16)) + ## [0.22.2](https://github.com/andreoliwa/nitpick/compare/v0.22.1...v0.22.2) (2020-05-15) diff --git a/README.md b/README.md index 14ef092b..c8308a75 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ To try the package, simply install it (in a virtualenv or globally) and run `fla $ flake8 . -Nitpick will download and use the opinionated [default style file](https://raw.githubusercontent.com/andreoliwa/nitpick/v0.22.2/nitpick-style.toml). +Nitpick will download and use the opinionated [default style file](https://raw.githubusercontent.com/andreoliwa/nitpick/v0.23.0/nitpick-style.toml). You can use it as a template to configure your own style. @@ -70,7 +70,7 @@ If you use [pre-commit](https://pre-commit.com/) on your project (you should), a repos: - repo: https://github.com/andreoliwa/nitpick - rev: v0.22.2 + rev: v0.23.0 hooks: - id: nitpick diff --git a/docs/conf.py b/docs/conf.py index 27b59b70..7f366f34 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,7 +18,7 @@ author = "W. Augusto Andreoli" # The short X.Y version -version = "0.22.2" +version = "0.23.0" # The full version, including alpha/beta/rc tags release = version diff --git a/docs/installation_guide.rst b/docs/installation_guide.rst index f860626f..e86f2fc0 100644 --- a/docs/installation_guide.rst +++ b/docs/installation_guide.rst @@ -35,7 +35,7 @@ If you use pre-commit_ on your project (you should), add this to the ``.pre-comm repos: - repo: https://github.com/andreoliwa/nitpick - rev: v0.22.2 + rev: v0.23.0 hooks: - id: nitpick diff --git a/docs/targets.rst b/docs/targets.rst index bef77cc9..81468f08 100644 --- a/docs/targets.rst +++ b/docs/targets.rst @@ -1,5 +1,5 @@ .. _nitpick-style.toml: -.. _default style file: https://raw.githubusercontent.com/andreoliwa/nitpick/v0.22.2/nitpick-style.toml +.. _default style file: https://raw.githubusercontent.com/andreoliwa/nitpick/v0.23.0/nitpick-style.toml .. _black: https://github.com/psf/black .. _Django: https://www.djangoproject.com diff --git a/nitpick-style.toml b/nitpick-style.toml index b1d4bd88..a8eba704 100644 --- a/nitpick-style.toml +++ b/nitpick-style.toml @@ -1,5 +1,5 @@ # Default style file for nitpick -# https://raw.githubusercontent.com/andreoliwa/nitpick/v0.22.2/nitpick-style.toml +# https://raw.githubusercontent.com/andreoliwa/nitpick/v0.23.0/nitpick-style.toml [nitpick] minimum_version = "0.10.0" diff --git a/package.json b/package.json index 7e322929..f4e7b620 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nitpick", - "version": "0.22.2", + "version": "0.23.0", "repository": { "type": "git", "url": "https://github.com/andreoliwa/nitpick.git" diff --git a/pyproject.toml b/pyproject.toml index 2c2839e5..58d1559a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ line-length = 120 [tool.poetry] name = "nitpick" -version = "0.22.2" +version = "0.23.0" description = "Flake8 plugin to enforce the same lint configuration (flake8, isort, mypy, pylint) across multiple Python projects" authors = ["W. Augusto Andreoli <andreoliwa@gmail.com>"] license = "MIT" diff --git a/setup.cfg b/setup.cfg index 3adbb813..2952a0bd 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.22.2 +current_version = 0.23.0 commit = False tag = False @@ -65,80 +65,66 @@ addopts = -v norecursedirs = .* build dist CVS _darcs {arch} *.egg venv var docs [tox:tox] -# https://tox.readthedocs.io/en/latest/example/package.html#poetry isolated_build = True - -# https://tox.readthedocs.io/en/latest/plugins.html -# https://tox.readthedocs.io/en/latest/config.html#conf-requires -# https://tox.readthedocs.io/en/latest/example/basic.html#tox-auto-provisioning -requires = - tox-travis - tox-venv - tox-pyenv - +requires = + tox-travis + tox-venv + tox-pyenv envlist = clean,lint,py39,py38,py37,py36,py35,report [testenv] description = Run tests with pytest and coverage deps = pytest-cov extras = test -depends = - {py39,py38,py37,py36,py35}: clean - report: py39,py38,py37,py36,py35 -setenv = - # I had this error locally, but it worked on Travis CI: https://github.com/pytest-dev/pytest/issues/2042 - PY_IGNORE_IMPORTMISMATCH = 1 -commands = - python -m pip --version - # https://pytest-cov.readthedocs.io/en/latest/config.html +depends = + {py39,py38,py37,py36,py35}: clean + report: py39,py38,py37,py36,py35 +setenv = + PY_IGNORE_IMPORTMISMATCH = 1 +commands = + python -m pip --version python -m pytest --cov-config=setup.cfg --cov --cov-append --cov-report=term-missing --doctest-modules {posargs:-vv} -# https://pytest-cov.readthedocs.io/en/latest/tox.html [testenv:clean] description = Erase data for the coverage report before running tests skip_install = true deps = coverage commands = coverage erase -# https://tox.readthedocs.io/en/latest/config.html [testenv:lint] description = Lint all files with pre-commit basepython = python3.7 platform = linux|darwin -# These packages are needed for the pylint hook to check the code under tests/*. -extras = - lint - test -deps = - pre-commit - safety -commands = - pre-commit run --all-files - safety check +extras = + lint + test +deps = + pre-commit + safety +commands = + pre-commit run --all-files + safety check [testenv:report] description = Coverage report skip_install = true deps = coverage -commands = - coverage report - coverage html +commands = + coverage report + coverage html [coverage:run] -# https://coverage.readthedocs.io/en/coverage-5.1/config.html#run branch = true parallel = true -omit = - tests/* - .tox/* - /home/travis/virtualenv/* +omit = + tests/* + .tox/* + /home/travis/virtualenv/* [coverage:paths] -# https://coverage.readthedocs.io/en/coverage-5.1/config.html#paths source = src/ [coverage:report] -# https://coverage.readthedocs.io/en/coverage-5.1/config.html#report show_missing = true precision = 2 skip_covered = true @@ -149,14 +135,13 @@ sort = Cover description = Build the HTML docs using Sphinx (sphinx-build, API docs, link checks) basepython = python3.7 extras = doc -commands = - sphinx-apidoc --force --module-first --separate --implicit-namespaces --output-dir docs/source src/nitpick/ - python3 docs/generate_rst.py - - # Detect broken links on the documentation - sphinx-build --color -b linkcheck docs "{toxworkdir}/docs_out" - - sphinx-build -d "{toxworkdir}/docs_doctree" --color -b html docs "{toxworkdir}/docs_out" {posargs} +commands = + sphinx-apidoc --force --module-first --separate --implicit-namespaces --output-dir docs/source src/nitpick/ + python3 docs/generate_rst.py + + sphinx-build --color -b linkcheck docs "{toxworkdir}/docs_out" + + sphinx-build -d "{toxworkdir}/docs_doctree" --color -b html docs "{toxworkdir}/docs_out" {posargs} [bandit] exclude = tests/* diff --git a/src/nitpick/__init__.py b/src/nitpick/__init__.py index 0176d6ed..792031b1 100644 --- a/src/nitpick/__init__.py +++ b/src/nitpick/__init__.py @@ -1,2 +1,2 @@ """Main module.""" -__version__ = "0.22.2" +__version__ = "0.23.0"