Skip to content

Commit

Permalink
Add black formatting (#1539)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbeSneyders committed Jun 27, 2022
2 parents 1d3d6c5 + 600ed4e commit 83e6e7e
Show file tree
Hide file tree
Showing 97 changed files with 4,906 additions and 3,736 deletions.
17 changes: 17 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ repos:
files: "^connexion/"
additional_dependencies:
- flake8-rst-docstrings==0.2.3

- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
Expand All @@ -24,3 +25,19 @@ repos:
name: isort tests
files: "^tests/"
args: ["--project", "conftest", "--thirdparty", "connexion", "--check-only", "--diff"]

- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
name: black
files: "^connexion/"
args: ["connexion"]
- id: black
name: black examples
files: "^examples/"
args: ["examples"]
- id: black
name: black tests
files: "^tests/"
args: ["tests"]
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,8 @@ Contributing to Connexion/TODOs
We welcome your ideas, issues, and pull requests. Just follow the
usual/standard GitHub practices.

For easy development, please install connexion in editable mode with the :code:`tests` extra, and
install the pre-commit hooks.
For easy development, install connexion in editable mode with the :code:`tests` extra, and
install the pre-commit hooks to automatically run black formatting and static analysis checks.

.. code-block:: bash
Expand Down
2 changes: 1 addition & 1 deletion connexion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
Api = FlaskApi

# This version is replaced during release process.
__version__ = '2020.0.dev1'
__version__ = "2020.0.dev1"
3 changes: 1 addition & 2 deletions connexion/apis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@
"""


from .abstract import (AbstractAPI, AbstractRoutingAPI, # NOQA
AbstractSwaggerUIAPI)
from .abstract import AbstractAPI, AbstractRoutingAPI, AbstractSwaggerUIAPI # NOQA
Loading

0 comments on commit 83e6e7e

Please sign in to comment.