diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml old mode 100755 new mode 100644 index 37957a0..4a02dab --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,17 +6,17 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.9.0 + rev: 26.3.1 hooks: - id: black - repo: https://github.com/pycqa/isort - rev: 7.0.0 + rev: 8.0.1 hooks: - id: isort - repo: https://github.com/pylint-dev/pylint - rev: v4.0.2 + rev: v4.0.5 hooks: - id: pylint language: python diff --git a/bfi_dagster_project/resources/__init__.py b/bfi_dagster_project/resources/__init__.py index e3e2872..da2b5e5 100755 --- a/bfi_dagster_project/resources/__init__.py +++ b/bfi_dagster_project/resources/__init__.py @@ -159,8 +159,7 @@ def initialise_db(self, context: dg.AssetExecutionContext): cursor = conn.cursor() # Enable WAL mode for better concurrent access / busy time out / create table - cursor.execute( - """ + cursor.execute(""" CREATE TABLE IF NOT EXISTS encoding_status ( process_id INTEGER PRIMARY KEY AUTOINCREMENT, seq_id TEXT NOT NULL, @@ -193,8 +192,7 @@ def initialise_db(self, context: dg.AssetExecutionContext): project TEXT, Instruction TEXT ) - """ - ) + """) context.log.info("Database initialized at: %s", self.filepath) @with_retries() diff --git a/encoding_ui/app.py b/encoding_ui/app.py index 6014da8..ab296a9 100755 --- a/encoding_ui/app.py +++ b/encoding_ui/app.py @@ -23,8 +23,7 @@ def index(): DBASE = os.environ.get("DATABASE") CONNECT = sqlite3.connect(DBASE) -CONNECT.execute( - """ +CONNECT.execute(""" CREATE TABLE IF NOT EXISTS encoding_status ( process_id INTEGER PRIMARY KEY AUTOINCREMENT, seq_id TEXT NOT NULL, @@ -57,8 +56,7 @@ def index(): project TEXT Instruction TEXT ) - """ -) + """) @app.route("/reset_request", methods=["GET", "POST"])