Skip to content

Commit

Permalink
Upgrade CI tools
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Mar 21, 2024
1 parent 1d2a8e9 commit 4a482bc
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pre-commit/[email protected].0
- uses: pre-commit/[email protected].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"
Expand All @@ -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"
Expand All @@ -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:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ markers = [

[tool.ruff]
target-version = "py38"

[tool.ruff.lint]
select = [
"B",
"C",
Expand All @@ -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]
Expand Down
10 changes: 5 additions & 5 deletions src/dynamicprompts/commands/wrap_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4a482bc

Please sign in to comment.