File tree Expand file tree Collapse file tree 3 files changed +7
-13
lines changed Expand file tree Collapse file tree 3 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,12 @@ jobs:
55
55
python -m pip install --upgrade pip
56
56
pip install black isort
57
57
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
59
59
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 .
62
64
63
65
tests :
64
66
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 18
18
19
19
from app .config import GetEOLConfig , logging
20
20
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
26
22
27
23
28
24
class CiscoEOLJob :
Original file line number Diff line number Diff line change 2
2
import unittest
3
3
from unittest .mock import mock_open , patch
4
4
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
10
6
11
7
12
8
class TestUtilsFunctions (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments