Skip to content

Commit

Permalink
set ruff to py39
Browse files Browse the repository at this point in the history
reverted lambda change
  • Loading branch information
SamRWest committed Mar 12, 2024
1 parent 7cfdbf2 commit 04c16ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ test = { cmd = "pytest --cov-report term --cov-report html --cov=xl2times --cov=
# Config for various pre-commit checks are below
# Ruff linting rules - see https://github.com/charliermarsh/ruff and https://beta.ruff.rs/docs/rules/
[tool.ruff]
target-version = "py311"
target-version = "py39"
line-length = 88

# Option 1: use basic rules only.
Expand Down
3 changes: 1 addition & 2 deletions utils/run_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,7 @@ def run_all_benchmarks(
results_main = list(executor.map(run_a_benchmark, benchmarks))

# Print table with combined results to make comparison easier
def trunc(s):
s[:10] + "\u2026" if len(s) > 10 else s
trunc = lambda s: s[:10] + "\u2026" if len(s) > 10 else s # noqa

combined_results = [
(
Expand Down

0 comments on commit 04c16ae

Please sign in to comment.