From 1414a8f5dcc1a6697f2c42efb50e1672b771107b Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Mon, 6 Dec 2021 12:32:27 -0800 Subject: [PATCH] Tidy pyproject.toml --- pyproject.toml | 49 +++++++++++++++++++++++++++++++++++-------------- 1 file changed, 35 insertions(+), 14 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 736351d4..0722fe2b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,24 +44,38 @@ source = ["src/ocrmypdf"] [tool.coverage.report] # Regexes for lines to exclude from consideration exclude_lines = [ - # Have to re-enable the standard pragma - "pragma: no cover", - - # Don't complain if tests don't hit defensive assertion code: - "raise AssertionError", - "raise NotImplementedError", - - # Don't complain if non-runnable code isn't run: - "if 0:", - "if False:", - "if __name__ == .__main__.:", - "if TYPE_CHECKING:" + # Have to re-enable the standard pragma + "pragma: no cover", + # Don't complain if tests don't hit defensive assertion code: + "raise AssertionError", + "raise NotImplementedError", + # Don't complain if non-runnable code isn't run: + "if 0:", + "if False:", + "if __name__ == .__main__.:", + "if TYPE_CHECKING:" ] [tool.isort] profile = "black" known_first_party = "ocrmypdf" -known_third_party = ["PIL", "flask", "img2pdf", "ocrmypdf", "pdfminer", "pikepdf", "pkg_resources", "pluggy", "pytest", "reportlab", "setuptools", "sphinx_rtd_theme", "tqdm", "watchdog", "werkzeug"] +known_third_party = [ + "PIL", + "flask", + "img2pdf", + "ocrmypdf", + "pdfminer", + "pikepdf", + "pkg_resources", + "pluggy", + "pytest", + "reportlab", + "setuptools", + "sphinx_rtd_theme", + "tqdm", + "watchdog", + "werkzeug" +] [tool.pytest.ini_options] minversion = "6.0" @@ -75,6 +89,13 @@ filterwarnings = ["ignore:.*XMLParser.*:DeprecationWarning"] [[tool.mypy.overrides]] module = [ - 'pluggy', 'tqdm', 'coloredlogs', 'img2pdf', 'pdfminer.*', 'reportlab.*', 'fitz', 'libxmp.utils' + 'pluggy', + 'tqdm', + 'coloredlogs', + 'img2pdf', + 'pdfminer.*', + 'reportlab.*', + 'fitz', + 'libxmp.utils' ] ignore_missing_imports = true