Skip to content

Commit

Permalink
chore(release): 0.24.0 [skip ci]
Browse files Browse the repository at this point in the history
# [0.24.0](andreoliwa/nitpick@v0.23.1...v0.24.0) (2021-02-23)

### Bug Fixes

* check a YAML file with the text plugin ([andreoliwa#249](andreoliwa#249)) ([1821962](andreoliwa@1821962))
* override a remote style with "./your-local-style.toml" ([andreoliwa#295](andreoliwa#295)) ([fe5f085](andreoliwa@fe5f085))
* toml module now accepts keys beginning with dot (fix [andreoliwa#183](andreoliwa#183)) ([b086a24](andreoliwa@b086a24))
* validate sections in comma_separated_values (fix [andreoliwa#227](andreoliwa#227)) ([f1be98f](andreoliwa@f1be98f))

### Features

* apply changes to pyproject.toml ([andreoliwa#287](andreoliwa#287)) ([4b79f81](andreoliwa@4b79f81))
* apply changes to setup.cfg ([andreoliwa#288](andreoliwa#288)) ([f878630](andreoliwa@f878630))
* **cli:** add 'ls' command to list configured files ([cfc031b](andreoliwa@cfc031b))
* **cli:** add 'run' command to display violations ([a67bfa8](andreoliwa@a67bfa8))
* **cli:** filter only the desired files on ls/run commands ([andreoliwa#265](andreoliwa#265)) ([f5e4a9c](andreoliwa@f5e4a9c))
* drop support for Python 3.5 ([andreoliwa#251](andreoliwa#251)) ([9f84a60](andreoliwa@9f84a60)), closes [andreoliwa#250](andreoliwa#250)
* experimental CLI interface (alpha version) ([andreoliwa#255](andreoliwa#255)) ([c9ca5dc](andreoliwa@c9ca5dc))
  • Loading branch information
semantic-release-bot committed Feb 23, 2021
1 parent c3ecd8a commit 45cb29e
Show file tree
Hide file tree
Showing 11 changed files with 76 additions and 73 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
# [0.24.0](https://github.com/andreoliwa/nitpick/compare/v0.23.1...v0.24.0) (2021-02-23)


### Bug Fixes

* check a YAML file with the text plugin ([#249](https://github.com/andreoliwa/nitpick/issues/249)) ([1821962](https://github.com/andreoliwa/nitpick/commit/1821962a2a1fce898d93a9e81a8663d9ae7c2aed))
* override a remote style with "./your-local-style.toml" ([#295](https://github.com/andreoliwa/nitpick/issues/295)) ([fe5f085](https://github.com/andreoliwa/nitpick/commit/fe5f085ef5200111ce4f4a2288a84091a96438e2))
* toml module now accepts keys beginning with dot (fix [#183](https://github.com/andreoliwa/nitpick/issues/183)) ([b086a24](https://github.com/andreoliwa/nitpick/commit/b086a24c5503c09e26ca429455bd4fea54cf01bb))
* validate sections in comma_separated_values (fix [#227](https://github.com/andreoliwa/nitpick/issues/227)) ([f1be98f](https://github.com/andreoliwa/nitpick/commit/f1be98f985ebcfc7e402f22271b428452a2f140b))


### Features

* apply changes to pyproject.toml ([#287](https://github.com/andreoliwa/nitpick/issues/287)) ([4b79f81](https://github.com/andreoliwa/nitpick/commit/4b79f81f98430b749e7fa9ee5c192506d6ed5cf7))
* apply changes to setup.cfg ([#288](https://github.com/andreoliwa/nitpick/issues/288)) ([f878630](https://github.com/andreoliwa/nitpick/commit/f87863066642cdab112d3145c488c9a780e7c98d))
* **cli:** add 'ls' command to list configured files ([cfc031b](https://github.com/andreoliwa/nitpick/commit/cfc031bdf30105dec9a8952bfb9657aec939b3b6))
* **cli:** add 'run' command to display violations ([a67bfa8](https://github.com/andreoliwa/nitpick/commit/a67bfa8bdaef2461853a237819cd35622c5935e9))
* **cli:** filter only the desired files on ls/run commands ([#265](https://github.com/andreoliwa/nitpick/issues/265)) ([f5e4a9c](https://github.com/andreoliwa/nitpick/commit/f5e4a9c47583cd809941ca96ec2ffbdbf0c92c6f))
* drop support for Python 3.5 ([#251](https://github.com/andreoliwa/nitpick/issues/251)) ([9f84a60](https://github.com/andreoliwa/nitpick/commit/9f84a608a4ca02e8a96ec8eaaf55e5cb207b35e3)), closes [#250](https://github.com/andreoliwa/nitpick/issues/250)
* experimental CLI interface (alpha version) ([#255](https://github.com/andreoliwa/nitpick/issues/255)) ([c9ca5dc](https://github.com/andreoliwa/nitpick/commit/c9ca5dc3cc4586b459e2c58fb2e61d80aa3f1e5d))

## [0.23.1](https://github.com/andreoliwa/nitpick/compare/v0.23.0...v0.23.1) (2020-11-02)

### Bug Fixes
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,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.23.1/nitpick-style.toml).
Nitpick will download and use the opinionated [default style file](https://raw.githubusercontent.com/andreoliwa/nitpick/v0.24.0/nitpick-style.toml).

You can use it as a template to configure your own style.

Expand All @@ -71,7 +71,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.23.1
rev: v0.24.0
hooks:
- id: nitpick

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
author = "W. Augusto Andreoli"

# The short X.Y version
version = "0.23.1"
version = "0.24.0"
# The full version, including alpha/beta/rc tags
release = version

Expand Down
2 changes: 1 addition & 1 deletion docs/quickstart.rst
Original file line number Diff line number Diff line change
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.23.1
rev: v0.24.0
hooks:
- id: nitpick
Expand Down
2 changes: 1 addition & 1 deletion docs/targets.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.. _nitpick-style.toml:
.. _default style file: https://raw.githubusercontent.com/andreoliwa/nitpick/v0.23.1/nitpick-style.toml
.. _default style file: https://raw.githubusercontent.com/andreoliwa/nitpick/v0.24.0/nitpick-style.toml

.. _black: https://github.com/psf/black
.. _Django: https://www.djangoproject.com
Expand Down
2 changes: 1 addition & 1 deletion docs/tool_nitpick_section.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Use the URL of the remote file. If it's hosted on GitHub, use the raw GitHub URL
.. code-block:: toml
[tool.nitpick]
style = "https://raw.githubusercontent.com/andreoliwa/nitpick/v0.23.1/nitpick-style.toml"
style = "https://raw.githubusercontent.com/andreoliwa/nitpick/v0.24.0/nitpick-style.toml"
You can also use the raw URL of a `GitHub Gist <https://gist.github.com>`_:

Expand Down
2 changes: 1 addition & 1 deletion nitpick-style.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Default style file for nitpick
# https://raw.githubusercontent.com/andreoliwa/nitpick/v0.23.1/nitpick-style.toml
# https://raw.githubusercontent.com/andreoliwa/nitpick/v0.24.0/nitpick-style.toml

[nitpick]
minimum_version = "0.10.0"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nitpick",
"version": "0.23.1",
"version": "0.24.0",
"repository": {
"type": "git",
"url": "https://github.com/andreoliwa/nitpick.git"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ line-length = 120

[tool.poetry]
name = "nitpick"
version = "0.23.1"
version = "0.24.0"
description = "Enforce the same configuration across multiple projects"
authors = ["W. Augusto Andreoli <andreoliwa@gmail.com>"]
license = "MIT"
Expand Down
108 changes: 45 additions & 63 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.23.1
current_version = 0.24.0
commit = False
tag = False

Expand Down Expand Up @@ -45,12 +45,9 @@ max-line-length = 120
exclude = docs,.tox,build
max-complexity = 10
inline-quotes = double

# https://github.com/asottile/flake8-typing-imports#configuration
min_python_version = 3.6.0

[isort]
; https://pycqa.github.io/isort/docs/configuration/options/
line_length = 120
skip = docs,.tox,build
multi_line_output = 3
Expand All @@ -71,34 +68,31 @@ warn_unused_ignores = True
[tool:pytest]
addopts = -v
norecursedirs = .* build dist CVS _darcs {arch} *.egg venv var docs
# https://docs.pytest.org/en/stable/reference.html#confval-testpaths
testpaths = src tests

[tox:tox]
; https://tox.readthedocs.io/en/latest/config.html
isolated_build = True
envlist = clean,lint,py39,py38,py37,py36,docs,report

[gh-actions]
; https://github.com/ymyzk/tox-gh-actions
python =
3.9: py39
3.8: py38, clean, lint, docs, report
3.7: py37
3.6: py36
python =
3.9: py39
3.8: py38, clean, lint, docs, report
3.7: py37
3.6: py36

[testenv]
description = Run tests with pytest and coverage
deps = pytest-cov
extras = test
depends =
{py39,py38,py37,py36}: clean
report: py39,py38,py37,py36
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}
depends =
{py39,py38,py37,py36}: clean
report: py39,py38,py37,py36
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}

[testenv:clean]
description = Erase data for the coverage report before running tests
Expand All @@ -111,76 +105,64 @@ commands = coverage erase
description = Lint all files with pre-commit
basepython = python3.8
platform = linux|darwin
; pylint needs both these extras:
; lint: install pylint itself
; test: for pylint to inspect tests
extras =
lint
test
deps =
pip>=19.2
safety
# Run nitpick and pylint with tox, because local repos don't seem to work well with https://pre-commit.ci/
# Run Nitpick locally on itself
commands =
flake8 --select=NIP
pylint src/
safety check
extras =
lint
test
deps =
pip>=19.2
safety
commands =
flake8 --select=NIP
pylint src/
safety check

[testenv:report]
description = Coverage report
platform = linux|darwin
skip_install = true
deps = coverage
commands =
coverage report
coverage html
commands =
coverage report
coverage html

[testenv:docs]
description = Build the HTML docs using Sphinx (sphinx-build, API docs, link checks)
basepython = python3.8
platform = linux|darwin
extras = doc
# Options to debug Sphinx: -nWT --keep-going -vvv
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}
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}

[coverage:run]
; https://coverage.readthedocs.io/en/latest/config.html#run
branch = true
parallel = true
omit =
tests/*
.tox/*
; This config is needed by https://github.com/marketplace/actions/coveralls-python#usage
omit =
tests/*
.tox/*
relative_files = True

[coverage:paths]
; https://coverage.readthedocs.io/en/latest/config.html#paths
source = src/

[coverage:report]
; https://coverage.readthedocs.io/en/latest/config.html#report
show_missing = true
precision = 2
skip_covered = true
skip_empty = true
sort = Cover

; https://coverage.readthedocs.io/en/latest/excluding.html#advanced-exclusion
exclude_lines =
pragma: no cover
def __repr__
if self.debug:
if settings.DEBUG
if TYPE_CHECKING:
raise AssertionError
raise NotImplementedError
if 0:
if __name__ == .__main__.:
exclude_lines =
pragma: no cover
def __repr__
if self.debug:
if settings.DEBUG
if TYPE_CHECKING:
raise AssertionError
raise NotImplementedError
if 0:
if __name__ == .__main__.:

[bandit]
exclude = tests/*
2 changes: 1 addition & 1 deletion src/nitpick/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
from nitpick.core import Nitpick # noqa: F401

__all__ = ("Nitpick",)
__version__ = "0.23.1"
__version__ = "0.24.0"

logger.disable(PROJECT_NAME)

0 comments on commit 45cb29e

Please sign in to comment.