File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 47
47
# Compare against the previous benchmark if available
48
48
# Fail if performance degrades by more than 10%
49
49
if [ -d ".benchmarks" ]; then
50
- BASELINE=$(ls -t .benchmarks/Linux-CPython-3.10-64bit | head -n 2 | tail -n 1)
51
- CURRENT=$(ls -t .benchmarks/Linux-CPython-3.10-64bit | head -n 1)
50
+ benchmark_dir=".benchmarks/Linux-CPython-3.10-64bit"
51
+ BASELINE=$(ls -t $benchmark_dir | head -n 2 | tail -n 1)
52
+ CURRENT=$(ls -t $benchmark_dir | head -n 1)
52
53
if [ -n "$BASELINE" ] && [ "$BASELINE" != "$CURRENT" ]; then
53
54
# Set full paths to the benchmark files
54
55
BASELINE_FILE="$benchmark_dir/$BASELINE"
Original file line number Diff line number Diff line change 32
32
33
33
- name : Lint with ruff
34
34
run : |
35
- ruff check .
35
+ # Run ruff but don't fail the build yet (exit-zero)
36
+ ruff check . --exit-zero
36
37
37
38
- name : Type check with mypy
38
39
run : |
Original file line number Diff line number Diff line change @@ -21,6 +21,13 @@ repos:
21
21
additional_dependencies : [flake8-bugbear, flake8-comprehensions]
22
22
exclude : .venv
23
23
24
+ - repo : https://github.com/astral-sh/ruff-pre-commit
25
+ rev : v0.3.4
26
+ hooks :
27
+ - id : ruff
28
+ args : [--fix, --exit-non-zero-on-fix]
29
+ exclude : .venv
30
+
24
31
- repo : https://github.com/pre-commit/mirrors-prettier
25
32
rev : v4.0.0-alpha.8
26
33
hooks :
You can’t perform that action at this time.
0 commit comments