From 78a8d93ff82349ed910eb3063f835ac73b501c50 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Tue, 15 Feb 2022 10:53:56 -0600 Subject: [PATCH] Move flake8 configuration to setup.cfg (#398) --- .flake8 | 27 --------------------------- setup.cfg | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 27 deletions(-) delete mode 100644 .flake8 diff --git a/.flake8 b/.flake8 deleted file mode 100644 index 68862103b..000000000 --- a/.flake8 +++ /dev/null @@ -1,27 +0,0 @@ -[flake8] -max-line-length = 88 -extend-ignore = - # See https://github.com/PyCQA/pycodestyle/issues/373 - E203, -exclude = - # TorchGeo - data/, - logo/, - logs/, - output/, - - # Spack - .spack-env/, - - # Python - build/, - dist/, - .cache/, - .mypy_cache/, - .pytest_cache/, - __pycache__/, - *.egg-info/, - - # Git - .git/, - .github/, diff --git a/setup.cfg b/setup.cfg index d8644c98a..70e29ebd0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -113,3 +113,31 @@ tests = pytest>=6 # pytest-cov 2.4+ required for pytest --cov flags pytest-cov>=2.4 + +[flake8] +max-line-length = 88 +extend-ignore = + # See https://github.com/PyCQA/pycodestyle/issues/373 + E203, +exclude = + # TorchGeo + data/, + logo/, + logs/, + output/, + + # Spack + .spack-env/, + + # Python + build/, + dist/, + .cache/, + .mypy_cache/, + .pytest_cache/, + __pycache__/, + *.egg-info/, + + # Git + .git/, + .github/,