Skip to content

Commit

Permalink
Added additional formatters to CI (#3048)
Browse files Browse the repository at this point in the history
  • Loading branch information
UebelAndre authored Dec 5, 2024
1 parent eb08a35 commit caa8683
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/formatting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,16 @@ jobs:
if [[ -n "$(git status --porcelain)" ]]; then
exit 1
fi
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install 'black==24.10.0' 'isort==5.13.2'
- name: Run black
run: |
python -m black --check --diff ./
- name: Run isort
run: |
python -m isort --profile=black --check-only ./
5 changes: 2 additions & 3 deletions crate_universe/test_data/private/metadata_generator.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#!/usr/bin/env python3

from pathlib import Path
from typing import List
import json
import os
import shutil
import shutil
import subprocess
import sys
import tempfile
from pathlib import Path
from typing import List


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

0 comments on commit caa8683

Please sign in to comment.