Skip to content
Myr

Add flake8-comprehensions to nox check task (#200)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* fixed as flake8-comprehensions * added site folder into gitignore

authored by Can Sarıgöl · committed by Seth Michael Larson · parent 80dc3e2 · Browse files · 3 files+5 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+5 added−2 removed

  • other:+5 added−2 removed

3 files+5 added−2 removed

modified:httpx/client.py+1 added-1 removed
205 unmodified lines
206 # We perform these checks here, so that calls to `response.next()`207 # will raise redirect errors if appropriate.208 if len(history) > self.max_redirects:209 raise TooManyRedirects(response=history[-1])210 if request.url in [response.url for response in history]:210 if request.url in (response.url for response in history):211 raise RedirectLoop(response=history[-1])212213 response = await self.dispatch.send(214 request, verify=verify, cert=cert, timeout=timeout
756 unmodified lines
modified:.gitignore+1 added
2 unmodified lines
3.pytest_cache/4.mypy_cache/5__pycache__/6htmlcov/7site/8*.egg-info/9venv/10.nox
modified:noxfile.py+3 added-1 removed
26 unmodified lines
272829@nox.session(reuse_venv=True)30def check(session):31 session.install("black", "flake8", "flake8-bugbear", "mypy")31 session.install(32 "black", "flake8", "flake8-bugbear", "flake8-comprehensions", "mypy"33 )3435 session.run("black", "--check", "--target-version=py36", *source_files)36 session.run(37 "flake8", "--max-line-length=88", "--ignore=W503,E203,B305", *source_files
25 unmodified lines