Skip to content

Commit

Permalink
chore(release): 0.23.0 [skip ci]
Browse files Browse the repository at this point in the history
# [0.23.0](v0.22.2...v0.23.0) (2020-09-18)

### Bug Fixes

* get uiri/toml@9be6458 to fix conflict with black@20.8b1 ([fd2a44a](fd2a44a)), closes [#200](#200)

### Features

* check if a text file contains lines ([#182](#182)) ([3173bf7](3173bf7))
* detect JSON files by extension, no need to declare them first ([6f54480](6f54480))
* use a plugin system (experimental) ([#180](#180)) ([6d2df4f](6d2df4f))
  • Loading branch information
semantic-release-bot committed Sep 18, 2020
1 parent 0bc796f commit 72f3354
Show file tree
Hide file tree
Showing 10 changed files with 58 additions and 59 deletions.
14 changes: 14 additions & 0 deletions 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)


Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -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.

Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/installation_guide.rst
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 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
Expand Down
2 changes: 1 addition & 1 deletion 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"
Expand Down
2 changes: 1 addition & 1 deletion 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"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -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"
Expand Down
85 changes: 35 additions & 50 deletions setup.cfg
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.22.2
current_version = 0.23.0
commit = False
tag = False

Expand Down Expand Up @@ -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
Expand All @@ -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/*
2 changes: 1 addition & 1 deletion src/nitpick/__init__.py
@@ -1,2 +1,2 @@
"""Main module."""
__version__ = "0.22.2"
__version__ = "0.23.0"

0 comments on commit 72f3354

Please sign in to comment.