Skip to content

Commit

Permalink
fix: upgrade toml to 0.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoliwa committed Nov 2, 2020
1 parent 4cb55cc commit 23353d6
Show file tree
Hide file tree
Showing 17 changed files with 346 additions and 397 deletions.
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Expand Up @@ -3,13 +3,13 @@
# Thanks to https://github.com/sloria/environs/blob/master/.pre-commit-config.yaml
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
rev: v3.3.0
hooks:
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: v2.7.2
rev: v2.7.3
hooks:
- id: pyupgrade
- repo: https://github.com/python/black
Expand All @@ -27,11 +27,11 @@ repos:
hooks:
- id: seed-isort-config
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.5.2
rev: v5.6.4
hooks:
- id: isort
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.6.0
rev: v1.7.0
hooks:
- id: python-check-blanket-noqa
- id: python-check-mock-methods
Expand All @@ -48,14 +48,14 @@ repos:
types: [python]
always_run: true
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3
rev: 3.8.4
hooks:
- id: flake8
additional_dependencies: [flake8-blind-except, flake8-bugbear, flake8-comprehensions,
flake8-debugger, flake8-docstrings, flake8-isort, flake8-polyfill,
flake8-pytest, flake8-quotes, yesqa]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.782
rev: v0.790
hooks:
- id: mypy
# Using https://github.com/PyCQA/pylint doesn't work, it's a huge pain dealing with [MASTER]init-hook.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -12,7 +12,7 @@
[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=andreoliwa/nitpick)](https://dependabot.com)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

Flake8 plugin to enforce the same tool configuration ([flake8](https://gitlab.com/pycqa/flake8), [isort](https://github.com/timothycrosley/isort), [mypy](http://mypy-lang.org/), [Pylint](https://www.pylint.org)...) across multiple Python projects.
Flake8 plugin to enforce the same tool configuration ([flake8](https://gitlab.com/pycqa/flake8), [isort](https://github.com/PyCQA/isort), [mypy](http://mypy-lang.org/), [Pylint](https://www.pylint.org)...) across multiple Python projects.

Useful if you maintain multiple projects and want to use the same configs in all of them.

Expand Down Expand Up @@ -44,8 +44,8 @@ combine_as_imports = true

This style will assert that:

- ... [black](https://github.com/psf/black), [isort](https://github.com/timothycrosley/isort) and [flake8](https://gitlab.com/pycqa/flake8) have a line length of 120;
- ... [flake8](https://gitlab.com/pycqa/flake8) and [isort](https://github.com/timothycrosley/isort) are configured as above in `setup.cfg`;
- ... [black](https://github.com/psf/black), [isort](https://github.com/PyCQA/isort) and [flake8](https://gitlab.com/pycqa/flake8) have a line length of 120;
- ... [flake8](https://gitlab.com/pycqa/flake8) and [isort](https://github.com/PyCQA/isort) are configured as above in `setup.cfg`;
- ... [Pylint](https://www.pylint.org) is present as a [Poetry](https://github.com/python-poetry/poetry) dev dependency in `pyproject.toml`).

## Quick setup
Expand Down
14 changes: 7 additions & 7 deletions docs/defaults.rst
Expand Up @@ -86,7 +86,7 @@ Content of `styles/flake8.toml <https://raw.githubusercontent.com/andreoliwa/nit
[["pre-commit-config.yaml".repos]]
yaml = """
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3
rev: 3.8.4
hooks:
- id: flake8
additional_dependencies: [flake8-blind-except, flake8-bugbear, flake8-comprehensions,
Expand Down Expand Up @@ -124,7 +124,7 @@ Content of `styles/isort.toml <https://raw.githubusercontent.com/andreoliwa/nitp
# The configuration below is needed for compatibility with black.
# https://github.com/python/black#how-black-wraps-lines
# https://github.com/timothycrosley/isort#multi-line-output-modes
# https://github.com/PyCQA/isort#multi-line-output-modes
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
Expand All @@ -137,7 +137,7 @@ Content of `styles/isort.toml <https://raw.githubusercontent.com/andreoliwa/nitp
hooks:
- id: seed-isort-config
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.5.2
rev: v5.6.4
hooks:
- id: isort
"""
Expand Down Expand Up @@ -171,7 +171,7 @@ Content of `styles/mypy.toml <https://raw.githubusercontent.com/andreoliwa/nitpi
[["pre-commit-config.yaml".repos]]
yaml = """
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.782
rev: v0.790
hooks:
- id: mypy
"""
Expand Down Expand Up @@ -257,13 +257,13 @@ Content of `styles/pre-commit/general.toml <https://raw.githubusercontent.com/an
[["pre-commit-config.yaml".repos]]
yaml = """
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
rev: v3.3.0
hooks:
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: v2.7.2
rev: v2.7.3
hooks:
- id: pyupgrade
"""
Expand Down Expand Up @@ -295,7 +295,7 @@ Content of `styles/pre-commit/python.toml <https://raw.githubusercontent.com/and
[["pre-commit-config.yaml".repos]]
yaml = """
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.6.0
rev: v1.7.0
hooks:
- id: python-check-blanket-noqa
- id: python-check-mock-methods
Expand Down
4 changes: 2 additions & 2 deletions docs/targets.rst
Expand Up @@ -4,8 +4,8 @@
.. _black: https://github.com/psf/black
.. _Django: https://www.djangoproject.com
.. _flake8: https://gitlab.com/pycqa/flake8/
.. _Flask CLI: http://flask.palletsprojects.com/en/1.1.x/cli/
.. _isort: https://github.com/timothycrosley/isort/
.. _Flask CLI: https://flask.palletsprojects.com/en/1.1.x/cli/
.. _isort: https://github.com/PyCQA/isort/
.. _mypy: https://github.com/python/mypy/
.. _Nitpick: https://github.com/andreoliwa/nitpick/
.. _Pipenv: https://github.com/pypa/pipenv/
Expand Down

0 comments on commit 23353d6

Please sign in to comment.