diff --git a/pyproject.toml b/pyproject.toml index aa4949aa1..8075794dd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,2 +1,3 @@ [tool.black] line-length = 100 +target-version = ['py37', 'py38'] diff --git a/requirements-dev.txt b/requirements-dev.txt index 0a9135d90..0defb5eab 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -5,4 +5,4 @@ pytest-cov>=2.6.1 seaborn>=0.9.0 sphinx>=1.8 nbsphinx>=0.4.2 -black; python_version == '3.7' +black==19.10b0 diff --git a/scripts/lint.sh b/scripts/lint.sh index 08d1141f4..c360c7981 100755 --- a/scripts/lint.sh +++ b/scripts/lint.sh @@ -2,7 +2,7 @@ set -ex # fail on first error, print commands echo "Checking code style with black...." -python -m black bambi --line-length=100 --target-version=py37 --exclude=tests/ --check +python -m black bambi --check echo "Success!" echo "Checking code style with pylint..."