Skip to content

Commit

Permalink
(3.8) Minor tweaks (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
FozzieHi committed Mar 16, 2023
1 parent a110333 commit fc4dde8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bugbear.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def add_options(optmanager):
help="Skip B008 test for additional immutable calls.",
)

@lru_cache() # noqa: B019
@lru_cache # noqa: B019
def should_warn(self, code):
"""Returns `True` if Bugbear should emit a particular warning.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
]
requires-python = ">=3.8"
requires-python = ">=3.8.1"
dependencies = ["flake8 >= 3.0.0", "attrs>=19.2.0"]
dynamic = ["version"]

Expand Down
6 changes: 2 additions & 4 deletions tests/test_bugbear.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,8 +747,7 @@ def test_selfclean_bugbear(self):
filename = Path(__file__).absolute().parent.parent / "bugbear.py"
proc = subprocess.run(
["flake8", str(filename)],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
capture_output=True,
timeout=60,
)
self.assertEqual(proc.returncode, 0, proc.stdout.decode("utf8"))
Expand All @@ -759,8 +758,7 @@ def test_selfclean_test_bugbear(self):
filename = Path(__file__).absolute()
proc = subprocess.run(
["flake8", str(filename)],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
capture_output=True,
timeout=60,
)
self.assertEqual(proc.returncode, 0, proc.stdout.decode("utf8"))
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ python =
3.10: py310
3.11: py311

[testenv:{py37, py38, py39, py310, py311}]
[testenv:{py38, py39, py310, py311}]
description = Run coverage
deps =
coverage
Expand Down

0 comments on commit fc4dde8

Please sign in to comment.