Skip to content

Commit

Permalink
Minor config tweaks (#246)
Browse files Browse the repository at this point in the history
Ignore import warnings in hubconf and trigger lint workflow on PR.
  • Loading branch information
patricklabatut authored Sep 30, 2023
1 parent 9a4564c commit b507fbc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ on:
- main
pull_request:
branches:
- master
- 'gh/**'
- main

jobs:
run-linters:
Expand Down
2 changes: 0 additions & 2 deletions dinov2/hub/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ max-line-length = 120
ignore = E203,E501,W503
per-file-ignores =
__init__.py:F401
hubconf.py:F401
exclude =
venv

0 comments on commit b507fbc

Please sign in to comment.