Skip to content

Commit

Permalink
fix isort
Browse files Browse the repository at this point in the history
  • Loading branch information
ptichoid committed Sep 9, 2024
1 parent f7d1762 commit 0f27bcd
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 13 deletions.
3 changes: 2 additions & 1 deletion config/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from .classes import EnvVariables, Database, Timer
import logging

from .classes import Database, EnvVariables, Timer


def setup_logging():
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
Expand Down
2 changes: 1 addition & 1 deletion config/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
This script contains data classes for code reusing
"""
import logging
import time
import os
import time

import psycopg2

Expand Down
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""

import argparse

from scripts import eod_1_otc_services_dict, eod_2_gitea_info, eod_3_github_info, eod_4_failed_zuul, \
eod_5_open_issues, eod_6_last_commit_info, eod_7_request_changes, eod_8_ecosystem_issues, eod_9_scheduler

Expand Down
7 changes: 4 additions & 3 deletions scripts/eod_1_otc_services_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
service postgres tables, to match repo names, service full names and its squads
"""

import logging
import base64
import logging

import psycopg2
import requests
import yaml
import psycopg2

from config import Database, EnvVariables, setup_logging, Timer
from config import Database, EnvVariables, Timer, setup_logging

BASE_URL = "https://gitea.eco.tsi-dev.otc-service.com/api/v1"

Expand Down
2 changes: 1 addition & 1 deletion scripts/eod_2_gitea_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import requests
from github import Github

from config import Database, EnvVariables, setup_logging, Timer
from config import Database, EnvVariables, Timer, setup_logging

GITEA_API_ENDPOINT = "https://gitea.eco.tsi-dev.otc-service.com/api/v1"
session = requests.Session()
Expand Down
2 changes: 1 addition & 1 deletion scripts/eod_3_github_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import requests
from github import Github

from config import Database, EnvVariables, setup_logging, Timer
from config import Database, EnvVariables, Timer, setup_logging

env_vars = EnvVariables()
database = Database(env_vars)
Expand Down
2 changes: 1 addition & 1 deletion scripts/eod_4_failed_zuul.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import psycopg2
import requests

from config import Database, EnvVariables, setup_logging, Timer
from config import Database, EnvVariables, Timer, setup_logging

GITEA_API_ENDPOINT = "https://gitea.eco.tsi-dev.otc-service.com/api/v1"
session = requests.Session()
Expand Down
2 changes: 1 addition & 1 deletion scripts/eod_5_open_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import requests
from github import Github

from config import Database, EnvVariables, setup_logging, Timer
from config import Database, EnvVariables, Timer, setup_logging

GITEA_API_ENDPOINT = "https://gitea.eco.tsi-dev.otc-service.com/api/v1"
session = requests.Session()
Expand Down
2 changes: 1 addition & 1 deletion scripts/eod_6_last_commit_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import psycopg2
from github import Github

from config import Database, EnvVariables, setup_logging, Timer
from config import Database, EnvVariables, Timer, setup_logging

env_vars = EnvVariables()
database = Database(env_vars)
Expand Down
2 changes: 1 addition & 1 deletion scripts/eod_7_request_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import psycopg2
import requests

from config import Database, EnvVariables, setup_logging, Timer
from config import Database, EnvVariables, Timer, setup_logging

gitea_api_endpoint = "https://gitea.eco.tsi-dev.otc-service.com/api/v1"
session = requests.Session()
Expand Down
2 changes: 1 addition & 1 deletion scripts/eod_8_ecosystem_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import psycopg2
from github import Github

from config import Database, EnvVariables, setup_logging, Timer
from config import Database, EnvVariables, Timer, setup_logging

env_vars = EnvVariables()
database = Database(env_vars)
Expand Down
2 changes: 1 addition & 1 deletion scripts/eod_9_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import zulip
from psycopg2.extras import DictCursor

from config import Database, EnvVariables, setup_logging, Timer
from config import Database, EnvVariables, Timer, setup_logging

env_vars = EnvVariables()
database = Database(env_vars)
Expand Down

0 comments on commit 0f27bcd

Please sign in to comment.