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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 2 additions & 4 deletions bfi_dagster_project/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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()
Expand Down
6 changes: 2 additions & 4 deletions encoding_ui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -57,8 +56,7 @@ def index():
project TEXT
Instruction TEXT
)
"""
)
""")


@app.route("/reset_request", methods=["GET", "POST"])
Expand Down
Loading