Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.12.0
rev: 26.1.0
hooks:
- id: black
args: ["--line-length=120"]
Expand All @@ -24,6 +24,6 @@ repos:
- id: mypy

- repo: https://github.com/PyCQA/bandit
rev: 1.9.2
rev: 1.9.3
hooks:
- id: bandit
6 changes: 2 additions & 4 deletions pacli/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ def __init__(self, db_path="~/.config/pacli/sqlite3.db"):
self._local = threading.local()
self.fernet = None
# Initialize the database schema
self._get_conn().execute(
"""
self._get_conn().execute("""
CREATE TABLE IF NOT EXISTS secrets (
id TEXT PRIMARY KEY,
label TEXT,
Expand All @@ -47,8 +46,7 @@ def __init__(self, db_path="~/.config/pacli/sqlite3.db"):
creation_time INTEGER,
update_time INTEGER
)
"""
)
""")
self._get_conn().commit()

def _get_conn(self):
Expand Down