Skip to content

Commit 1e8fe28

Browse files
committed
style: fix black formatting and pin exact version
1 parent 4cbeda9 commit 1e8fe28

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ dependencies = [
3838
dev = [
3939
"pytest>=7.0.0",
4040
"pytest-cov>=4.0.0",
41-
"black~=24.0",
41+
"black==24.10.0",
4242
"flake8>=6.0.0",
4343
"mypy>=1.0.0",
4444
]
@@ -62,7 +62,7 @@ where = ["src"]
6262
nakimi = ["py.typed"]
6363

6464
[tool.black]
65-
line-length = 100
65+
line-length = 110
6666
target-version = ['py39', 'py310', 'py311', 'py312']
6767

6868
[tool.mypy]

src/nakimi/cli/main.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,7 @@ def cmd_yubikey(args): # noqa: C901
318318

319319
if not args.yubikey_command:
320320
print("❌ No yubikey command specified")
321-
print(
322-
" Available commands: setup, status, encrypt-key, decrypt-key, verify-pin, change-pin"
323-
)
321+
print(" Available commands: setup, status, encrypt-key, decrypt-key, verify-pin, change-pin")
324322
sys.exit(1)
325323

326324
try:
@@ -359,9 +357,7 @@ def cmd_yubikey(args): # noqa: C901
359357
print(" YubiKey will be used for age key encryption")
360358
print(" Note: age-plugin-yubikey must be installed for encryption/decryption")
361359
print()
362-
print(
363-
"⚠️ IMPORTANT: Run 'nakimi yubikey encrypt-key' to encrypt your existing age key"
364-
)
360+
print("⚠️ IMPORTANT: Run 'nakimi yubikey encrypt-key' " "to encrypt your existing age key")
365361

366362
elif args.yubikey_command == "status":
367363
print("🔍 Checking YubiKey status...")
@@ -592,9 +588,7 @@ class Args:
592588
yubikey_sub.add_parser("status", help="Check YubiKey status and configuration")
593589

594590
# yubikey encrypt-key
595-
encrypt_parser = yubikey_sub.add_parser(
596-
"encrypt-key", help="Encrypt existing age key with YubiKey"
597-
)
591+
encrypt_parser = yubikey_sub.add_parser("encrypt-key", help="Encrypt existing age key with YubiKey")
598592
encrypt_parser.add_argument("--slot", default="9a", help="PIV slot to use (default: 9a)")
599593

600594
# yubikey decrypt-key (for testing)

0 commit comments

Comments
 (0)