diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index 2afac8dc6..000000000 --- a/.coveragerc +++ /dev/null @@ -1,12 +0,0 @@ -[run] -omit = rich/jupyter.py - rich/_windows.py - rich/_timer.py - rich/diagnose.py - -[report] -exclude_lines = - pragma: no cover - if TYPE_CHECKING: - if __name__ == "__main__": - @overload diff --git a/make.bat b/make.bat deleted file mode 100644 index 6247f7e23..000000000 --- a/make.bat +++ /dev/null @@ -1,35 +0,0 @@ -@ECHO OFF - -pushd %~dp0 - -REM Command file for Sphinx documentation - -if "%SPHINXBUILD%" == "" ( - set SPHINXBUILD=sphinx-build -) -set SOURCEDIR=source -set BUILDDIR=build - -if "%1" == "" goto help - -%SPHINXBUILD% >NUL 2>NUL -if errorlevel 9009 ( - echo. - echo.The 'sphinx-build' command was not found. Make sure you have Sphinx - echo.installed, then set the SPHINXBUILD environment variable to point - echo.to the full path of the 'sphinx-build' executable. Alternatively you - echo.may add the Sphinx directory to PATH. - echo. - echo.If you don't have Sphinx installed, grab it from - echo.http://sphinx-doc.org/ - exit /b 1 -) - -%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% -goto end - -:help -%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% - -:end -popd diff --git a/pyproject.toml b/pyproject.toml index e0aafdc9b..5a4e16c65 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,3 +67,18 @@ testpaths = ["tests"] [tool.isort] profile = "black" + +[tool.coverage.run] +omit = [ + "rich/jupyter.py", + "rich/_windows.py", + "rich/_timer.py", + "rich/diagnose.py", +] + +[tool.coverage.report] +exclude_also = [ + "if TYPE_CHECKING:", + 'if __name__ == "__main__":', + "@overload" +] diff --git a/setup.py b/setup.py deleted file mode 100644 index 43a929cc7..000000000 --- a/setup.py +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env python - -# This is a shim to hopefully allow Github to detect the package, build is done with poetry - -import setuptools - -if __name__ == "__main__": - setuptools.setup(name="rich")