Add black config to pyproject.toml (#3493)

* chore: add black config to pyproject.toml

* enhance: make files will now use settings from pyproject.toml

* docs: update CONTRIBUTING.md
This commit is contained in:
jack1142
2020-02-08 13:47:39 +01:00
committed by GitHub
parent 42a4d10ea5
commit 84870f2fa2
4 changed files with 25 additions and 6 deletions

View File

@@ -2,9 +2,9 @@ PYTHON ?= python3.8
# Python Code Style
reformat:
$(PYTHON) -m black -l 99 --target-version py38 `git ls-files "*.py"`
$(PYTHON) -m black `git ls-files "*.py"`
stylecheck:
$(PYTHON) -m black --check -l 99 --target-version py38 `git ls-files "*.py"`
$(PYTHON) -m black --check `git ls-files "*.py"`
# Translations
gettext: