File tree Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -23,18 +23,13 @@ jobs:
23
23
- name : Install formatting dependencies
24
24
run : |
25
25
python -m pip install --upgrade pip
26
- pip install black isort ruff
26
+ pip install black ruff
27
27
28
28
- name : Check Black formatting
29
29
run : |
30
30
echo "Checking Black formatting..."
31
31
black --check --diff stagehand
32
32
33
- - name : Check import sorting
34
- run : |
35
- echo "Checking import sorting..."
36
- isort --check-only --diff stagehand
37
-
38
33
- name : Run Ruff linting
39
34
run : |
40
35
echo "Running Ruff linting..."
Original file line number Diff line number Diff line change 3
3
# Define source directories (adjust as needed)
4
4
SOURCE_DIRS=" stagehand"
5
5
6
- # Apply Black formatting only to source directories
6
+ # Apply Black formatting first
7
7
echo " Applying Black formatting..."
8
8
black $SOURCE_DIRS
9
9
10
- # Fix import sorting (addresses I001 errors)
11
- echo " Sorting imports..."
12
- isort $SOURCE_DIRS
13
-
14
- # Apply Ruff with autofix for remaining issues
15
- echo " Applying Ruff autofixes..."
10
+ # Apply Ruff with autofix for all issues (including import sorting)
11
+ echo " Applying Ruff autofixes (including import sorting)..."
16
12
ruff check --fix $SOURCE_DIRS
17
13
18
14
echo " Checking for remaining issues..."
You can’t perform that action at this time.
0 commit comments