Skip to content

Commit a1fca0f

Browse files
committed
win cicd skips
1 parent e0a58d2 commit a1fca0f

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,17 @@ repos:
1212
args: ['--maxkb=1000']
1313
- id: debug-statements
1414

15-
- repo: https://github.com/psf/black
16-
rev: 23.3.0
17-
hooks:
18-
- id: black
19-
language_version: python3
20-
2115
- repo: https://github.com/pycqa/isort
2216
rev: 5.12.0
2317
hooks:
2418
- id: isort
2519
args: ["--profile", "black"]
2620

21+
- repo: https://github.com/psf/black
22+
rev: 23.3.0
23+
hooks:
24+
- id: black
25+
language_version: python3
2726
- repo: https://github.com/pre-commit/mirrors-mypy
2827
rev: v1.3.0
2928
hooks:

scripts/reformat.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ log_info() {
88
echo -e "\033[1;34m[INFO]\033[0m $1"
99
}
1010

11-
log_info "Running black..."
12-
poetry run black .
13-
1411
log_info "Running isort..."
1512
poetry run isort .
1613

14+
log_info "Running black..."
15+
poetry run black .
16+
1717
log_info "Running ruff check --fix..."
1818
poetry run ruff check --fix .
1919

tests/test_quickmode_open.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
import shutil
22
import subprocess
3+
import sys
34
from pathlib import Path
45

6+
import pytest
7+
8+
poetry_bin = shutil.which("poetry")
9+
pytestmark = pytest.mark.skipif(
10+
sys.platform.startswith("win") or not poetry_bin,
11+
reason="Poetry subprocess not supported on Windows CI or Poetry not found in PATH",
12+
)
13+
514

615
def test_mdbub_can_open_simplemap() -> None:
716
"""Test that 'poetry run mdbub' can open examples/mindmaps/simplemap.md without error."""

0 commit comments

Comments
 (0)