Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ptichoid committed Jun 6, 2024
1 parent 3468ed7 commit 23ffb23
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 23 deletions.
4 changes: 2 additions & 2 deletions ecosystem_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
This script gathers info about github issues in infra repos, for ecosystem squad
"""

import time
import logging
from datetime import datetime, timedelta
import time
import os
from datetime import datetime, timedelta
import psycopg2
from github import Github

Expand Down
9 changes: 5 additions & 4 deletions failed_zuul.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
This script gathers info regarding PRs, which check jobs in zuul has been failed
"""

from datetime import datetime
import time
import json
import logging
import os
import requests
import json
import re
import time
from datetime import datetime
import psycopg2
import requests


logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')

Expand Down
10 changes: 5 additions & 5 deletions gitea_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
This script gather and process info about dependent PRs, its parents and store it in postgres table
"""

import time
import csv
import json
import logging
import os
import json
import csv
import re
import pathlib
import re
import time
import psycopg2
from github import Github
import requests
from github import Github

logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')

Expand Down
4 changes: 2 additions & 2 deletions github_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
This script retrieves info about parent PRs on Github
"""

import time
import logging
import os
import requests
import re
import time
import psycopg2
import requests
from github import Github

logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
Expand Down
2 changes: 1 addition & 1 deletion last_commit_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"""

from datetime import datetime
import time
import logging
import os
import shutil
import tempfile
import time
import psycopg2
from github import Github

Expand Down
6 changes: 3 additions & 3 deletions open_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"""

import time
import logging
import json
import re
import logging
import os
import re
from datetime import datetime
from github import Github
import requests
import psycopg2
from github import Github


logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
Expand Down
7 changes: 4 additions & 3 deletions 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 time
import base64
import logging
import os
import time
import psycopg2
import requests
import yaml
import base64
import psycopg2


logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')

Expand Down
6 changes: 3 additions & 3 deletions scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
This script sends Zulip messages to a corresponding squads via Zulip bot, based on info taken from postgres tables
"""

import time
import logging
import os
import time
from datetime import datetime
from urllib.parse import quote
import os
import psycopg2
from psycopg2.extras import DictCursor
import zulip
from psycopg2.extras import DictCursor

logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')

Expand Down

0 comments on commit 23ffb23

Please sign in to comment.