From b507fbcf50bfe225a1bd7bb70b2323bb0c5033b5 Mon Sep 17 00:00:00 2001
From: Patrick Labatut <60359573+patricklabatut@users.noreply.github.com>
Date: Sat, 30 Sep 2023 20:01:59 +0200
Subject: [PATCH] Minor config tweaks (#246)

Ignore import warnings in hubconf and trigger lint workflow on PR.
---
 .github/workflows/lint.yaml | 3 +--
 dinov2/hub/utils.py         | 2 --
 setup.cfg                   | 1 +
 3 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml
index b2ed3b0..7717625 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 f1829b4..4680599 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 3cac0c0..a2b19d6 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
-- 
GitLab