Skip to content

Commit d1d3bf1

Browse files
committed
Local updates DATA3
2 parents 094f180 + 83146c9 commit d1d3bf1

5 files changed

Lines changed: 338 additions & 224 deletions

File tree

.pre-commit-config.yaml

100755100644
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ repos:
66
- id: end-of-file-fixer
77
- id: trailing-whitespace
88
- repo: https://github.com/psf/black-pre-commit-mirror
9-
rev: 26.3.1
9+
rev: 26.5.1
1010
hooks:
1111
- id: black
1212

1313
- repo: https://github.com/pycqa/isort
14-
rev: 8.0.1
14+
rev: 9.0.0b1
1515
hooks:
1616
- id: isort
1717

1818
- repo: https://github.com/pylint-dev/pylint
19-
rev: v4.0.5
19+
rev: v4.0.6
2020
hooks:
2121
- id: pylint
2222
language: python

bfi_dagster_project/resources/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import time
66
from contextlib import contextmanager
77
from multiprocessing import Pool
8+
89
import dagster as dg
910

1011
ACCEPTED_COLS = [
@@ -37,7 +38,7 @@
3738
"sequence_deleted",
3839
"moved_to_autoingest",
3940
"project",
40-
"Instruction"
41+
"Instruction",
4142
]
4243

4344

@@ -274,7 +275,9 @@ def append_to_database(
274275
column_names = [arg_pair[0] for arg_pair in arguments] + ["last_updated"]
275276
for col in column_names:
276277
if col not in ACCEPTED_COLS:
277-
raise ValueError(f"Invalid column name found in supplied columns: {col}")
278+
raise ValueError(
279+
f"Invalid column name found in supplied columns: {col}"
280+
)
278281
set_clause = ", ".join([f"{col} = ?" for col in column_names])
279282

280283
# Prepare values

cron_code/unwrap_tar_checksum.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,7 @@ def main():
121121
sys.exit(f"Exiting: Error with supplied path: {UNTAR_PATH}")
122122

123123
log_list = []
124-
tar_files = [
125-
x for x in os.listdir(UNTAR_PATH) if x.endswith((".tar", ".TAR"))
126-
]
124+
tar_files = [x for x in os.listdir(UNTAR_PATH) if x.endswith((".tar", ".TAR"))]
127125
if len(tar_files) == 0:
128126
sys.exit(f"{UNTAR_PATH} EMPTY. SCRIPT EXITING.")
129127

@@ -143,7 +141,10 @@ def main():
143141
data = tarfile.open(fpath)
144142
print(data.getnames())
145143
if manifest_name in data.getnames():
146-
LOGGER.info("Python TAR file needs tarfile extraction - manifest %s matched in TAR", manifest_name)
144+
LOGGER.info(
145+
"Python TAR file needs tarfile extraction - manifest %s matched in TAR",
146+
manifest_name,
147+
)
147148
extraction_method = "tarfile"
148149
else:
149150
LOGGER.info("Linux TAR extraction selected - no manifest found in TAR file")
@@ -160,9 +161,7 @@ def main():
160161
minutes_taken = (toc - tic) // 60
161162
if not untar_fpath:
162163
extraction_failed = True
163-
LOGGER.warning(
164-
"Unwrapping failed with Linux TAR."
165-
)
164+
LOGGER.warning("Unwrapping failed with Linux TAR.")
166165

167166
else:
168167
untar_file = fname.split(".tar")[0]

requirements.txt

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ ffmpeg-python==0.2.0
77
tenacity==9.1.2
88
dicttoxml==1.7.16
99
lxml==5.3.2
10-
requests==2.32.4
10+
requests==2.34.0

0 commit comments

Comments
 (0)