diff --git a/.flake8 b/.flake8 deleted file mode 100644 index 02b0915..0000000 --- a/.flake8 +++ /dev/null @@ -1,28 +0,0 @@ -[flake8] -# References: -# https://flake8.readthedocs.io/en/latest/user/configuration.html -# https://flake8.readthedocs.io/en/latest/user/error-codes.html -# https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes - -ignore = - # E203: whitespace before ':' - E203, - # E226: missing whitespace around arithmetic operator - E226, - # E231: missing whitespace after ',', ';', or ':' - E231, - # E402: module level imports on one line - E402, - # E501: line too long - E501, - # W503: line break before binary operator - W503, - # W504: line break after binary operator - W504, -exclude = - # - # ignore the following directories - # - .eggs, - build, - sphinxext, diff --git a/pyproject.toml b/pyproject.toml index d7a4509..fbbc026 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,6 +53,13 @@ requires = ["setuptools>=45"] # Defined by PEP 517 build-backend = "setuptools.build_meta" +[tool.setuptools.package-data] +mypkg = [ + "etc/test_data/*.txt", + "tests/results/*.npz", + "tests/results/imagerepo.json" +] + [tool.pytest.ini_options] minversion = "6.0" addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 0df43f3..0000000 --- a/setup.cfg +++ /dev/null @@ -1,26 +0,0 @@ -[flake8] -exclude = - .git, - docs, - tephi/tests/__init__.py - .eggs - -[tool:pytest] -testpaths = - tephi/ -markers = - graphical: mark a test as a graphical test -addopts = - -ra - -v - --cov-config=.coveragerc - --cov=tephi - --cov-report=term-missing - --doctest-modules -doctest_optionflags = NORMALIZE_WHITESPACE ELLIPSIS NUMBER - -[options.package_data] -tephi = - etc/test_data/*.txt - tests/results/*.npz - tests/results/imagerepo.json diff --git a/setup.py b/setup.py deleted file mode 100644 index 093148b..0000000 --- a/setup.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python -"""A file to be used for installing or building the package.""" -# Copyright Tephi contributors -# -# This file is part of Tephi and is released under the BSD license. -# See LICENSE in the root of the repository for full licensing details. - -from setuptools import setup - -if __name__ == "__main__": - setup()