Add flake8-comprehensions to nox check task (#200)
* fixed as flake8-comprehensions * added site folder into gitignore
This commit is contained in:
parent
80dc3e274e
commit
1b82d6373b
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,6 +4,7 @@
|
||||
.mypy_cache/
|
||||
__pycache__/
|
||||
htmlcov/
|
||||
site/
|
||||
*.egg-info/
|
||||
venv/
|
||||
.nox
|
||||
|
||||
@ -207,7 +207,7 @@ class BaseClient:
|
||||
# will raise redirect errors if appropriate.
|
||||
if len(history) > self.max_redirects:
|
||||
raise TooManyRedirects(response=history[-1])
|
||||
if request.url in [response.url for response in history]:
|
||||
if request.url in (response.url for response in history):
|
||||
raise RedirectLoop(response=history[-1])
|
||||
|
||||
response = await self.dispatch.send(
|
||||
|
||||
@ -28,7 +28,9 @@ def lint(session):
|
||||
|
||||
@nox.session(reuse_venv=True)
|
||||
def check(session):
|
||||
session.install("black", "flake8", "flake8-bugbear", "mypy")
|
||||
session.install(
|
||||
"black", "flake8", "flake8-bugbear", "flake8-comprehensions", "mypy"
|
||||
)
|
||||
|
||||
session.run("black", "--check", "--target-version=py36", *source_files)
|
||||
session.run(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user