Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #579

Merged
merged 2 commits into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,28 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.23.0
rev: 0.26.3
hooks:
- id: check-github-workflows
- id: check-dependabot
- id: check-readthedocs
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.7.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
rev: v2.2.5
hooks:
- id: codespell
additional_dependencies:
- tomli
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.269
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.286
hooks:
- id: ruff
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.13
rev: v0.14
hooks:
- id: validate-pyproject
- repo: https://github.com/tox-dev/pyproject-fmt
Expand Down
6 changes: 1 addition & 5 deletions nose2/plugins/loader/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,7 @@ def method(func=func, args=args):
setattr(instance, method_name, method)
yield instance
except Exception as e:
test_name = "{}.{}.{}".format(
testCaseClass.__module__,
testCaseClass.__name__,
name,
)
test_name = f"{testCaseClass.__module__}.{testCaseClass.__name__}.{name}"
yield event.loader.failedLoadTests(test_name, e)

def _testsFromGeneratorFunc(self, event, obj):
Expand Down
4 changes: 2 additions & 2 deletions nose2/tests/unit/test_testid_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def test___init__(self):
self.assertEqual(
val,
exp_val,
"Attribute {} should have value "
"'{}', but has value {}".format(name, exp_val, val),
f"Attribute {name} should have value "
f"'{exp_val}', but has value {val}",
)

def test_start_test(self):
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ license = {text = "BSD-2-Clause"}
authors = [
{ name = "Stephen Rosen", email = "dev@nose2.io" },
]
requires-python = ">=3.8"
requires-python = ">=3.6"
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
Expand All @@ -26,6 +26,7 @@ classifiers=[
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down Expand Up @@ -113,9 +114,10 @@ select = [
ignore = [
"B904",
"RUF005",
"RUF012",
"RUF100"
]
target-version = "py38"
target-version = "py37"

[tool.ruff.isort]
known-third-party = [
Expand Down