Skip to content

Commit

Permalink
Fix GTFS-RT validator black issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ohrite committed Nov 23, 2024
1 parent 8cb8db8 commit ebaad90
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions jobs/gtfs-rt-parser-v2/gtfs_rt_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,7 @@ def __init__(
def validator(self):
return RtValidator()

def process(
self, tmp_dir: str, scope
) -> List[RTFileProcessingOutcome]:
def process(self, tmp_dir: str, scope) -> List[RTFileProcessingOutcome]:
outcomes: List[RTFileProcessingOutcome] = []
fs = get_fs()

Expand Down Expand Up @@ -649,9 +647,7 @@ def __init__(self, aggregation: RTHourlyAggregation, verbose: bool = False):
self.aggregation = aggregation
self.verbose = verbose

def process(
self, tmp_dir: str, scope
) -> List[RTFileProcessingOutcome]:
def process(self, tmp_dir: str, scope) -> List[RTFileProcessingOutcome]:
outcomes: List[RTFileProcessingOutcome] = []
fs = get_fs()
dst_path_rt = f"{tmp_dir}/rt_{self.aggregation.name_hash}/"
Expand Down Expand Up @@ -798,9 +794,7 @@ def parse_and_validate(
raise RuntimeError("we should not be here")

if aggregation.step == RTProcessingStep.validate:
return ValidationProcessor(aggregation, verbose).process(
tmp_dir, scope
)
return ValidationProcessor(aggregation, verbose).process(tmp_dir, scope)

if aggregation.step == RTProcessingStep.parse:
return ParseProcessor(aggregation, verbose).process(tmp_dir, scope)
Expand Down

0 comments on commit ebaad90

Please sign in to comment.