diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f3474b9..f4d72e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,14 +15,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: pre-commit/action@v3.0.0 + - uses: pre-commit/action@v3.0.1 env: RUFF_OUTPUT_FORMAT: github mypy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: "3.11" cache: "pip" @@ -40,7 +40,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} cache: "pip" @@ -51,7 +51,7 @@ jobs: - run: pytest --cov --cov-report=term-missing --cov-report=xml . env: PYPARSINGENABLEALLWARNINGS: 1 - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 publish: if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') needs: @@ -66,7 +66,7 @@ jobs: id-token: write steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: "3.11" - run: python -m pip install hatch diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0fe058d..86afbe5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.6 + rev: v0.3.3 hooks: - id: ruff args: diff --git a/pyproject.toml b/pyproject.toml index 2dac549..728cc16 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,6 +52,8 @@ markers = [ [tool.ruff] target-version = "py38" + +[tool.ruff.lint] select = [ "B", "C", @@ -75,7 +77,7 @@ unfixable = [ "F841", # don't remove seemingly unused locals ] -[tool.ruff.flake8-tidy-imports] +[tool.ruff.lint.flake8-tidy-imports] ban-relative-imports = "all" [tool.mypy] diff --git a/src/dynamicprompts/commands/wrap_command.py b/src/dynamicprompts/commands/wrap_command.py index 4f58d93..82c5606 100644 --- a/src/dynamicprompts/commands/wrap_command.py +++ b/src/dynamicprompts/commands/wrap_command.py @@ -12,11 +12,11 @@ WRAP_MARKER_CHARACTERS = { "\u1801", # Mongolian ellipsis "\u2026", # Horizontal ellipsis - "\u22EE", # Vertical ellipsis - "\u22EF", # Midline horizontal ellipsis - "\u22F0", # Up right diagonal ellipsis - "\u22F1", # Down right diagonal ellipsis - "\uFE19", # Presentation form for vertical horizontal ellipsis + "\u22ee", # Vertical ellipsis + "\u22ef", # Midline horizontal ellipsis + "\u22f0", # Up right diagonal ellipsis + "\u22f1", # Down right diagonal ellipsis + "\ufe19", # Presentation form for vertical horizontal ellipsis } WRAP_MARKER_RE = re.compile(