diff --git a/pyproject.toml b/pyproject.toml index 4e74e54..b8ec386 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,2 +1,11 @@ [build-system] -requires = ['setuptools>=40.8.0', 'wheel', 'numpy', 'pythran', 'transonic>=0.4.0'] +requires = ["setuptools>=40.8.0", "wheel", "numpy", "pythran", "transonic>=0.4.0"] + +[tool.black] +line-length = 88 + +[tool.isort] +known_first_party = "pylandstats" +default_section = "THIRDPARTY" +forced_separate = ["test_pylandstats", "pythran"] +skip = "setup.py" diff --git a/requirements.txt b/requirements.txt index f6d5227..4f53fe5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,4 +3,4 @@ numpy >= 1.15 pandas >= 0.23 rasterio >= 1.0.0 scipy >= 1.0.0 -transonic >= 0.4.0 \ No newline at end of file +transonic >= 0.4.0 diff --git a/setup.cfg b/setup.cfg index efb8528..e07e66a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -10,13 +10,8 @@ max-line-length = 88 extend-ignore = E203 exclude = build - pylandstats/__pythran__ + pylandstats/__pythran__ per-file-ignores = pylandstats/__init__.py:F401,F403 pylandstats/landscape.py:F821,D401 tests/test_pylandstats.py:D101,D102,F401 - -[isort] -known_first_party = pylandstats -default_section = THIRDPARTY -forced_separate = test_pylandstats, pythran