* fixed as flake8-comprehensions
* added site folder into gitignore
.mypy_cache/
__pycache__/
htmlcov/
+site/
*.egg-info/
venv/
.nox
# 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(
@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(