Skip to content

Commit 03b929f

Browse files
author
zgeorg
committed
add eol-eos
1 parent 6193321 commit 03b929f

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

.github/workflows/pipeline.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,12 @@ jobs:
5555
python -m pip install --upgrade pip
5656
pip install black isort
5757
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
58-
- name: Check code compliance with black and isort
58+
- name: Check and fix import sorting with isort
5959
run: |
60-
black --check .
61-
isort --check-only .
60+
isort --profile black . # Ensure isort uses the Black profile
61+
- name: Check code compliance with black
62+
run: |
63+
black --check .
6264
6365
tests:
6466
runs-on: ubuntu-latest

app/jobs/get_eol_fn.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@
1818

1919
from app.config import GetEOLConfig, logging
2020
from app.jobs.get_cisco_products import scrape_cisco_products
21-
from app.utils import (
22-
normalize_date_format,
23-
normalize_to_camel_case,
24-
save_to_json,
25-
)
21+
from app.utils import normalize_date_format, normalize_to_camel_case, save_to_json
2622

2723

2824
class CiscoEOLJob:

tests/test_utils.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
import unittest
33
from unittest.mock import mock_open, patch
44

5-
from app.utils import (
6-
normalize_date_format,
7-
normalize_to_camel_case,
8-
save_to_json,
9-
)
5+
from app.utils import normalize_date_format, normalize_to_camel_case, save_to_json
106

117

128
class TestUtilsFunctions(unittest.TestCase):

0 commit comments

Comments
 (0)