Skip to content

Commit a04e410

Browse files
Fix the last linter errors. Turn on fail on linter errors.
1 parent 9213234 commit a04e410

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/python-package.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: |
2929
pip install ruff
3030
ruff check --output-format=github .
31-
continue-on-error: true
31+
continue-on-error: false
3232

3333
- name: Install dependencies
3434
run: |

src/pyff/test/test_repo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def test_display(self):
141141
funet_connect = self.md.lookup('https://connect.funet.fi/shibboleth')[0]
142142
name, desc = entity_extended_display(funet_connect)
143143
assert name == 'FUNET E-Meeting Service'
144-
dn = entity_extended_display(funet_connect)
144+
_dn = entity_extended_display(funet_connect)
145145

146146
def test_missing(self):
147147
swamid = root(self.swamid)

src/pyff/test/test_rwlock.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def test_unthreaded(self):
122122
finally:
123123
try:
124124
self.lock.release()
125-
except:
125+
except Exception:
126126
pass
127127

128128
def test_deadlock(self):

src/pyff/test/test_store.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def test_select_wayf(self):
125125
def test_lookup_intersect_empty_test01(self):
126126
store = RedisWhooshStore(directory=self.dir, clear=True, name="test", redis=fakeredis.FakeStrictRedis())
127127
store.update(self.test01, etag='test01', lazy=False)
128-
entity_id = root(self.test01).get('entityID')
128+
_entity_id = root(self.test01).get('entityID')
129129
e = store.lookup("{}={}+{}={}".format(ATTRS['domain'], 'example.com', ATTRS['role'], 'sp'))
130130
assert len(e) == 0
131131

@@ -258,7 +258,7 @@ def test_lookup_intersect_test01(self):
258258
def test_lookup_intersect_empty_test01(self):
259259
store = MemoryStore()
260260
store.update(self.test01)
261-
entity_id = root(self.test01).get('entityID')
261+
_entity_id = root(self.test01).get('entityID')
262262
e = store.lookup("{}={}+{}={}".format(ATTRS['domain'], 'example.com', ATTRS['role'], 'sp'))
263263
assert len(e) == 0
264264

0 commit comments

Comments
 (0)