Skip to content

Commit

Permalink
chore: run isort-format
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Jan 24, 2025
1 parent 040b687 commit 4324bdc
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 16 deletions.
7 changes: 4 additions & 3 deletions sync2jira/downstream_issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,24 @@
#
# Authors: Ralph Bean <[email protected]>

from datetime import datetime, timezone

# Python Standard Library Modules
import difflib
import logging
import operator
import re
from datetime import datetime, timezone
from typing import Optional

# 3rd Party Modules
import arrow
import jinja2
from jira import JIRAError
import jira.client
import pypandoc
from jira import JIRAError

# Local Modules
from sync2jira.intermediary import PR, Issue
from sync2jira.intermediary import Issue, PR
from sync2jira.mailer import send_mail

# The date the service was upgraded
Expand Down
4 changes: 2 additions & 2 deletions sync2jira/mailer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
This script is used to send emails
"""

import os
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
import os
import smtplib

DEFAULT_FROM = os.environ.get('DEFAULT_FROM')
DEFAULT_SERVER = os.environ.get('DEFAULT_SERVER')
Expand Down
11 changes: 6 additions & 5 deletions sync2jira/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,29 @@
Run with systemd, please.
"""
from copy import deepcopy

# Build-In Modules
import logging
import os
from time import sleep
import traceback
import warnings
from copy import deepcopy
from time import sleep

# 3rd Party Modules
import fedmsg
import fedmsg.config
import jinja2
import requests
from requests_kerberos import OPTIONAL, HTTPKerberosAuth
from requests_kerberos import HTTPKerberosAuth, OPTIONAL

# Local Modules
import sync2jira.downstream_issue as d_issue
import sync2jira.downstream_pr as d_pr
import sync2jira.upstream_issue as u_issue
import sync2jira.upstream_pr as u_pr
from sync2jira.intermediary import matcher
from sync2jira.mailer import send_mail
import sync2jira.upstream_issue as u_issue
import sync2jira.upstream_pr as u_pr

# Set up our logging
FORMAT = "[%(asctime)s] %(levelname)s: %(message)s"
Expand Down
4 changes: 2 additions & 2 deletions sync2jira/upstream_issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
#
# Authors: Ralph Bean <[email protected]>

import logging
from copy import deepcopy
import logging
from urllib.parse import urlencode

import requests
from github import Github
import requests

import sync2jira.intermediary as i

Expand Down
4 changes: 2 additions & 2 deletions tests/test_downstream_issue.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from datetime import datetime, timezone
import unittest
import unittest.mock as mock
from datetime import datetime, timezone
from unittest.mock import MagicMock

import jira.client
from jira import JIRAError
import jira.client

import sync2jira.downstream_issue as d
from sync2jira.intermediary import Issue
Expand Down
2 changes: 1 addition & 1 deletion tests/test_upstream_issue.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from copy import deepcopy
import unittest
import unittest.mock as mock
from copy import deepcopy
from unittest.mock import MagicMock

import sync2jira.upstream_issue as u
Expand Down
2 changes: 1 addition & 1 deletion tests/test_upstream_pr.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from copy import deepcopy
import unittest
import unittest.mock as mock
from copy import deepcopy
from unittest.mock import MagicMock

import sync2jira.upstream_pr as u
Expand Down

0 comments on commit 4324bdc

Please sign in to comment.