File tree Expand file tree Collapse file tree
bfi_dagster_project/resources Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 55import time
66from contextlib import contextmanager
77from multiprocessing import Pool
8+
89import dagster as dg
910
1011ACCEPTED_COLS = [
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
Original file line number Diff line number Diff 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 ]
Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ ffmpeg-python==0.2.0
77tenacity == 9.1.2
88dicttoxml == 1.7.16
99lxml == 5.3.2
10- requests == 2.32.4
10+ requests == 2.34.0
You can’t perform that action at this time.
0 commit comments