Skip to content

Commit

Permalink
ignore init files as before
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdittrich92 committed Nov 10, 2023
1 parent 8175232 commit e3ab427
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion doctr/datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from doctr.file_utils import is_tf_available

from .generator import *
from .cord import *
from .detection import *
from .doc_artefacts import *
from .funsd import *
from .generator import *
from .ic03 import *
from .ic13 import *
from .iiit5k import *
Expand Down
2 changes: 1 addition & 1 deletion doctr/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from . import artefacts
from .classification import *
from .detection import *
from .factory import *
from .recognition import *
from .zoo import *
from .factory import *
2 changes: 1 addition & 1 deletion doctr/models/classification/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .magc_resnet import *
from .mobilenet import *
from .resnet import *
from .vgg import *
from .magc_resnet import *
from .vit import *
from .zoo import *
2 changes: 1 addition & 1 deletion doctr/models/recognition/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .crnn import *
from .master import *
from .parseq import *
from .sar import *
from .vitstr import *
from .parseq import *
from .zoo import *
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ select = [
"D101", "D103", "D201","D202","D207","D208","D214","D215","D300","D301","D417", "D419", # pydocstyle
]
ignore = ["E402", "F403", "E731", "N812", "N817", "C408", "PT", "RUF"]
exclude = [".git", "venv*", "build"]
exclude = [".git", "venv*", "build", "**/__init__.py"]
line-length = 120
target-version = "py39"

Expand All @@ -181,7 +181,6 @@ known-first-party = ["doctr", "app", "utils"]
known-third-party = ["tensorflow", "torch", "torchvision", "wandb", "fastprogress", "fastapi"]

[tool.ruff.per-file-ignores]
"**/__init__.py" = ["I001", "F401", "CPY001"]
"doctr/models/**.py" = ["N806"]
"doctr/datasets/**.py" = ["N806"]
"tests/**.py" = ["D"]
Expand Down

0 comments on commit e3ab427

Please sign in to comment.