Skip to content

Commit a93db0c

Browse files
committed
uv and minor updates to CI
1 parent e8a1874 commit a93db0c

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

.github/workflows/ci.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,26 @@ name: Test Suite Sanity Checking
22

33
on:
44
push:
5+
branches-ignore:
6+
- "wip*"
7+
tags:
8+
- "v*"
59
pull_request:
6-
release:
7-
types: [published]
810
schedule:
911
# Daily at 3:42, arbitrarily as a time that's possibly non-busy
1012
- cron: "42 3 * * *"
13+
workflow_dispatch:
1114

1215
jobs:
1316
ci:
1417
runs-on: ubuntu-latest
1518

1619
steps:
1720
- uses: actions/checkout@v4
18-
- name: Set up nox
19-
uses: wntrblm/[email protected]
21+
- name: Set up uv
22+
uses: astral-sh/setup-uv@v5
23+
with:
24+
enable-cache: true
25+
2026
- name: Run nox
21-
run: nox
27+
run: uvx nox

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
args: [--fix, lf]
1515
- id: trailing-whitespace
1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: "v0.9.1"
17+
rev: "v0.9.2"
1818
hooks:
1919
- id: ruff
2020
args: [--fix, --exit-non-zero-on-fix]

noxfile.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
import nox
44

55
ROOT = Path(__file__).parent
6+
TESTS = ROOT / "test_sanity.py"
67

8+
nox.options.default_venv_backend = "uv|virtualenv"
79
nox.options.sessions = []
810

911

@@ -31,4 +33,4 @@ def style(session):
3133
Check Python code style in the sanity test suite.
3234
"""
3335
session.install("ruff")
34-
session.run("ruff", "check", ROOT, __file__)
36+
session.run("ruff", "check", ROOT, TESTS, __file__)

pyproject.toml

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
[tool.isort]
2-
combine_as_imports = true
3-
from_first = true
4-
include_trailing_comma = true
5-
multi_line_output = 3
6-
71
[tool.ruff]
82
line-length = 79
93

@@ -13,6 +7,7 @@ ignore = [
137
"A001", # It's fine to shadow builtins
148
"A002",
159
"A003",
10+
"A005",
1611
"ARG", # This is all wrong whenever an interface is involved
1712
"ANN", # Just let the type checker do this
1813
"B006", # Mutable arguments require care but are OK if you don't abuse them
@@ -50,7 +45,6 @@ ignore = [
5045
"SIM300", # Not sure what heuristic this uses, but it's easily incorrect
5146
"SLF001", # Private usage within this package itself is fine
5247
"TD", # These TODO style rules are also silly
53-
"UP007", # We support 3.8 + 3.9
5448
]
5549

5650
[tool.ruff.lint.flake8-pytest-style]

0 commit comments

Comments
 (0)