Skip to content

Commit 5c8c97a

Browse files
committedMar 8, 2025
Remove flake8 & apply pyupgrade
1 parent a512ce3 commit 5c8c97a

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed
 

‎scripttest/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ def mustcontain(self, s: str) -> None:
587587
assert s in bytes
588588

589589
def __repr__(self) -> str:
590-
return "<{} {}:{}>".format(self.__class__.__name__, self.base_path, self.path)
590+
return f"<{self.__class__.__name__} {self.base_path}:{self.path}>"
591591

592592
def __eq__(self, other: object) -> bool:
593593
if not isinstance(other, FoundFile):
@@ -618,7 +618,7 @@ def __init__(self, base_path: str, path: str) -> None:
618618
self.mtime = self.stat.st_mtime
619619

620620
def __repr__(self) -> str:
621-
return "<{} {}:{}>".format(self.__class__.__name__, self.base_path, self.path)
621+
return f"<{self.__class__.__name__} {self.base_path}:{self.path}>"
622622

623623
def __eq__(self, other: object) -> bool:
624624
if not isinstance(other, FoundDir):

‎tox.ini

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
minversion = 1.9
3-
envlist = py{38,39,310,311,312,313},pypy3,docs,pep8
3+
envlist = py{38,39,310,311,312,313},pypy3,docs
44

55
[testenv]
66
deps = pytest
@@ -15,15 +15,7 @@ commands =
1515
sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html
1616
python setup.py check -m -r -s
1717

18-
[testenv:pep8]
19-
deps = flake8
20-
commands = flake8 .
21-
2218
[testenv:mypy]
2319
deps = mypy
2420
commands = mypy --strict scripttest
2521
skip_install = true
26-
27-
[flake8]
28-
exclude = .tox,*.egg,build,docs/conf.py
29-
select = E,W,F

0 commit comments

Comments
 (0)