fix linter

This commit is contained in:
taichunmin
2025-08-13 00:51:16 +08:00
parent c396d06baa
commit 06a873fca4
3 changed files with 7 additions and 4 deletions
+2 -1
View File
@@ -12,7 +12,8 @@ dependencies = [
[tool.pyrefly]
project-includes = ["**/*"]
project-excludes = ['**/*venv/**\*']
project-excludes = ["**/.venv"]
search-path = ["script"]
[dependency-groups]
dev = [
+1 -1
View File
@@ -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]:
+4 -2
View File
@@ -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):