Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ def get_current_version(pyproject_path: Path) -> str:

def infer_bump(changelog_dir: Path) -> str:
fragments = [
f
for f in changelog_dir.iterdir()
if f.is_file() and f.name != ".gitkeep"
f for f in changelog_dir.iterdir() if f.is_file() and f.name != ".gitkeep"
]
if not fragments:
print("No changelog fragments found", file=sys.stderr)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr_code_changes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: astral-sh/setup-uv@v5
- name: Install relevant dependencies
run: |
uv pip install black isort linecheck --system
uv pip install "ruff>=0.9.0" --system
- name: Check code formatting
run: make check-format

Expand Down
8 changes: 2 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@ test:
pytest tests/ --cov=microimpute --cov-report=xml --maxfail=0

check-format:
linecheck .
isort --check-only --profile black microimpute/
black . -l 79 --check
ruff format --check .

format:
linecheck . --fix
isort --profile black microimpute/
black . -l 79
ruff format .

documentation:
cd docs && jupyter book clean . --all
Expand Down
1 change: 1 addition & 0 deletions changelog.d/ruff-format.changed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Switch from black to ruff for code formatting
Loading