Skip to content

Commit caa8683

Browse files
authored
Added additional formatters to CI (#3048)
1 parent eb08a35 commit caa8683

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.github/workflows/formatting.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,16 @@ jobs:
2929
if [[ -n "$(git status --porcelain)" ]]; then
3030
exit 1
3131
fi
32+
- name: Set up Python
33+
uses: actions/setup-python@v2
34+
with:
35+
python-version: 3.11
36+
- name: Install dependencies
37+
run: |
38+
pip install 'black==24.10.0' 'isort==5.13.2'
39+
- name: Run black
40+
run: |
41+
python -m black --check --diff ./
42+
- name: Run isort
43+
run: |
44+
python -m isort --profile=black --check-only ./

crate_universe/test_data/private/metadata_generator.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
#!/usr/bin/env python3
22

3-
from pathlib import Path
4-
from typing import List
53
import json
64
import os
75
import shutil
8-
import shutil
96
import subprocess
107
import sys
118
import tempfile
9+
from pathlib import Path
10+
from typing import List
1211

1312

1413
def run_subprocess(command: List[str]) -> subprocess.CompletedProcess[str]:

0 commit comments

Comments
 (0)