mirror of
https://github.com/RfidResearchGroup/ChameleonUltra.git
synced 2026-05-12 11:22:59 -07:00
fix linter
This commit is contained in:
@@ -12,7 +12,8 @@ dependencies = [
|
||||
|
||||
[tool.pyrefly]
|
||||
project-includes = ["**/*"]
|
||||
project-excludes = ['**/*venv/**\*']
|
||||
project-excludes = ["**/.venv"]
|
||||
search-path = ["script"]
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
|
||||
@@ -354,7 +354,7 @@ class MFUAuthArgsUnit(ReaderRequiredUnit):
|
||||
def key_parser(key: str) -> bytes:
|
||||
try:
|
||||
key = bytes.fromhex(key)
|
||||
except:
|
||||
except ValueError:
|
||||
raise ValueError("Key should be a hex string")
|
||||
|
||||
if len(key) not in [4, 16]:
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
#!/usr/bin/env python3
|
||||
import os, sys, unittest
|
||||
import os
|
||||
import sys
|
||||
import unittest
|
||||
from crypto1 import Crypto1
|
||||
|
||||
CURRENT_DIR = os.path.split(os.path.abspath(__file__))[0]
|
||||
config_path = CURRENT_DIR.rsplit(os.sep, 1)[0]
|
||||
sys.path.append(config_path)
|
||||
print(config_path)
|
||||
from crypto1 import Crypto1
|
||||
|
||||
class TestCrypto1(unittest.TestCase):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user