diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index b2ed3b081..771762569 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -6,8 +6,7 @@ on: - main pull_request: branches: - - master - - 'gh/**' + - main jobs: run-linters: diff --git a/dinov2/hub/utils.py b/dinov2/hub/utils.py index f1829b4ce..468059933 100644 --- a/dinov2/hub/utils.py +++ b/dinov2/hub/utils.py @@ -3,8 +3,6 @@ # This source code is licensed under the Apache License, Version 2.0 # found in the LICENSE file in the root directory of this source tree. -import torch.nn as nn - _DINOV2_BASE_URL = "https://dl.fbaipublicfiles.com/dinov2" diff --git a/setup.cfg b/setup.cfg index 3cac0c045..a2b19d6b2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,5 +3,6 @@ max-line-length = 120 ignore = E203,E501,W503 per-file-ignores = __init__.py:F401 + hubconf.py:F401 exclude = venv