Skip to content

Commit

Permalink
ruff bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Mar 19, 2024
1 parent cea61e4 commit 79d62b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
8 changes: 4 additions & 4 deletions ivoire/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ def result_summary(self, result):
"""
Return a summary of the results.
"""
return "{} examples, {} errors, {} failures\n".format(
result.testsRun,
len(result.errors),
len(result.failures),
return (
f"{result.testsRun} examples, "
f"{len(result.errors)} errors, "
f"{len(result.failures)} failures\n"
)

def timing(self, elapsed):
Expand Down
12 changes: 9 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ name = "ivoire"
description = "A simple RSpec-like testing framework."
requires-python = ">=3.8"
readme = "README.rst"
license = {text = "MIT"}
keywords = []
authors = [
{ name = "Julian Berman", email = "Julian+Ivoire@GrayVines.com" },
Expand Down Expand Up @@ -56,6 +55,12 @@ exclude_also = [
show_missing = true
skip_covered = true

[tool.doc8]
ignore = [
"D000", # see PyCQA/doc8#125
"D001", # one sentence per line, so max length doesn't make sense
]

[tool.isort]
combine_as_imports = true
ensure_newline_before_comments = true
Expand All @@ -65,6 +70,7 @@ multi_line_output = 3
use_parentheses = true
[tool.ruff]
line-length = 79
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"A001", # It's fine to shadow builtins
Expand Down Expand Up @@ -117,14 +123,14 @@ ignore = [
[tool.ruff.lint.flake8-pytest-style]
mark-parentheses = false

[tool.ruff.flake8-quotes]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"

[tool.ruff.lint.isort]
combine-as-imports = true
from-first = true

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"noxfile.py" = ["ANN", "D100", "S101", "T201"]
"docs/*" = ["ANN", "D", "INP001"]
"examples/*" = ["ANN", "D", "INP001"]
Expand Down

0 comments on commit 79d62b7

Please sign in to comment.