Skip to content

Commit

Permalink
misc: replace unify/yapf with black
Browse files Browse the repository at this point in the history
  • Loading branch information
kmichel-aiven committed May 30, 2022
1 parent 6ff6bfb commit ec0feb3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 61 deletions.
55 changes: 0 additions & 55 deletions .style.yapf

This file was deleted.

5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ mypy:

.PHONY: fmt
fmt:
unify --quote '"' --recursive --in-place $(PYTHON_SOURCE_DIRS)
isort --recursive $(PYTHON_SOURCE_DIRS)
yapf --parallel --recursive --in-place $(PYTHON_SOURCE_DIRS)
isort $(PYTHON_SOURCE_DIRS)
black $(PYTHON_SOURCE_DIRS)

.PHONY: coverage
coverage:
Expand Down
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
[build-system]
requires = ['setuptools', 'wheel']
build-backend = 'setuptools.build_meta'

[tool.black]
line-length = 125

[tool.isort]
no_sections = true
force_alphabetical_sort = true
combine_as_imports = true
profile = "black"
skip_gitignore = true
line_length = 125
5 changes: 2 additions & 3 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# same versions than pghoard this must reviewed and pinned
black==22.3.0
mypy
# Same version from pghoard
pylint>=2.4.3,<=2.7.2
Expand All @@ -7,9 +8,7 @@ pytest
pytest-cov
pytest-mock
# Same version from pghoard
yapf==0.30.0
isort==5.7.0
unify
isort==5.10.1
types-python-dateutil
types-paramiko
types-botocore
Expand Down

0 comments on commit ec0feb3

Please sign in to comment.