From 24d4c231227f174723aa96075f90a301d5d22b28 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 May 2024 17:06:37 +0000 Subject: [PATCH] style: pre-commit fixes --- pyproject.toml | 47 ++++++++++++++++++++++------------------------- 1 file changed, 22 insertions(+), 25 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8e30399..09ebb27 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ keywords = [ ] license = "MIT" authors = [ - { name = "Saransh Chopra", email = "saransh0701@gmail.com" }, + { name = "Saransh Chopra", email = "saransh0701@gmail.com" }, ] requires-python = ">=3.7" classifiers = [ @@ -44,19 +44,18 @@ dependencies = [ "numpy>=1.19.3", "opencv-python>=4.5.3.56", "packaging", - "pillow<10.0.0", + "pillow<10", "pytesseract>=0.3.8", "scikit-image>=0.18.3", "scipy>=1.5.4", ] -[project.optional-dependencies] -dev = [ +optional-dependencies.dev = [ "nltk>=3.5", "pytest>=6", "pytest-cov>=3", "xdoctest>=1", ] -docs = [ +optional-dependencies.docs = [ "markdown-callouts>=0.2", "mkdocs>=1.3.1", "mkdocs-include-exclude-files>=0.0.1", @@ -66,21 +65,19 @@ docs = [ "mkdocstrings-python-legacy>=0.2.3", "pymdown-extensions>=9.5", ] -nltk = [ +optional-dependencies.nltk = [ "nltk>=3.5", ] -test = [ +optional-dependencies.test = [ "pytest>=6", "pytest-cov>=3", "xdoctest>=1", ] -[project.urls] -"Bug Tracker" = "https://github.com/Saransh-cpp/OCRed/issues" -Changelog = "https://ocred.readthedocs.io/en/latest/changelog/" -Discussions = "https://github.com/Saransh-cpp/OCRed/discussions" -Documentation = "https://ocred.readthedocs.io/" -Homepage = "https://github.com/Saransh-cpp/OCRed" - +urls."Bug Tracker" = "https://github.com/Saransh-cpp/OCRed/issues" +urls.Changelog = "https://ocred.readthedocs.io/en/latest/changelog/" +urls.Discussions = "https://github.com/Saransh-cpp/OCRed/discussions" +urls.Documentation = "https://ocred.readthedocs.io/" +urls.Homepage = "https://github.com/Saransh-cpp/OCRed" [tool.hatch] version.source = "vcs" build.hooks.vcs.version-file = "ocred/version.py" @@ -92,23 +89,23 @@ profile = "black" minversion = "6.0" xfail_strict = true addopts = [ - "-ra", - "--strict-markers", - "--strict-config", + "-ra", + "--strict-markers", + "--strict-config", ] testpaths = [ - "tests", + "tests", ] log_cli_level = "DEBUG" filterwarnings = [ - "error", - "ignore::DeprecationWarning", - "ignore::UserWarning", + "error", + "ignore::DeprecationWarning", + "ignore::UserWarning", ] [tool.mypy] files = [ - "./ocred/", + "./ocred/", ] python_version = "3.8" strict = true @@ -116,8 +113,8 @@ warn_return_any = false show_error_codes = true warn_unreachable = true enable_error_code = [ - "ignore-without-code", - "truthy-bool", - "redundant-expr", + "ignore-without-code", + "truthy-bool", + "redundant-expr", ] ignore_missing_imports = true