Skip to content

Commit

Permalink
fix ruff complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
Magier committed Jul 4, 2024
1 parent d2c234f commit 6c7a163
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/update_feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,23 @@
import logging
import lzma
import os
from queue import Queue
import re
import shutil
import sys
import tarfile
from textwrap import dedent
from urllib.error import HTTPError
import urllib.request
import zipfile
from collections import defaultdict
from dataclasses import dataclass, field, fields
from enum import Enum
from itertools import groupby
from pathlib import Path
from queue import Queue
from textwrap import dedent
from typing import Callable, Generator, Iterator, Self
from urllib.error import HTTPError

logging.basicConfig(
level=logging.INFO,
level=logging.DEBUG,
stream=sys.stdout,
format="[%(asctime)s][%(levelname)s]: %(message)s",
datefmt="%Y-%m-%d %H:%M:%S %Z",
Expand Down Expand Up @@ -540,7 +539,7 @@ def load_feed(feed_file: str) -> list[Entry]:
try:
with open(feed_file, "r") as f:
reader = csv.reader(f)
headers = next(reader, None) # skip header
next(reader, None) # skip header
for line in reader:
if len(line) > 0:
entries.append(Entry(*line))
Expand Down Expand Up @@ -1074,7 +1073,7 @@ def load_stashed_repos(src_path: Path, queue: Queue):
try:
with open(src_path, "r") as f:
reader = csv.reader(f)
headers = next(reader, None) # skip header
next(reader, None) # skip header
for line in reader:
if len(line) > 0:
queue.put(GithubRepo(*line))
Expand Down

0 comments on commit 6c7a163

Please sign in to comment.