Skip to content

Commit

Permalink
chore: update pre-commit hooks (#187)
Browse files Browse the repository at this point in the history
* chore: update pre-commit hooks

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.3 → v0.4.4](astral-sh/ruff-pre-commit@v0.4.3...v0.4.4)
- [github.com/tox-dev/pyproject-fmt: 1.8.0 → 2.1.1](tox-dev/pyproject-fmt@1.8.0...2.1.1)

* style: pre-commit fixes

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored May 21, 2024
1 parent 846c7ec commit cb969f4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 26 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.4.3"
rev: "v0.4.4"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "1.8.0"
rev: "2.1.1"
hooks:
- id: pyproject-fmt

Expand Down
46 changes: 22 additions & 24 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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",
Expand All @@ -66,20 +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"
Expand All @@ -92,32 +90,32 @@ 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
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

0 comments on commit cb969f4

Please sign in to comment.