+++ /dev/null
-[settings]
-known_first_party = httpx
-known_third_party = brotli,certifi,chardet,cryptography,h11,h2,hstspreload,nox,pytest,rfc3986,setuptools,trustme,uvicorn
session.run("autoflake", "--in-place", "--recursive", *source_files)
session.run("seed-isort-config", "--application-directories=httpx")
- session.run(
- "isort",
- "--project=httpx",
- "--multi-line=3",
- "--trailing-comma",
- "--force-grid-wrap=0",
- "--combine-as",
- "--line-width=88",
- "--recursive",
- "--apply",
- *source_files,
- )
+ session.run("isort", "--project=httpx", "--recursive", "--apply", *source_files)
session.run("black", "--target-version=py36", *source_files)
check(session)
)
session.run("black", "--check", "--target-version=py36", *source_files)
- session.run(
- "flake8", "--max-line-length=88", "--ignore=W503,E203,B305", *source_files
- )
- session.run("mypy", "httpx", "--ignore-missing-imports", "--disallow-untyped-defs")
+ session.run("flake8", *source_files)
+ session.run("mypy", "httpx")
@nox.session(reuse_venv=True)
def test(session):
session.install("-r", "test-requirements.txt")
- session.run(
- "coverage",
- "run",
- "--omit='*'",
- "-m",
- "pytest",
- "--cov=httpx",
- "--cov=tests",
- "--cov-report=term-missing",
- )
+ session.run("python", "-m", "pytest")
--- /dev/null
+[flake8]
+ignore = W503, E203, B305
+max-line-length = 88
+
+[mypy]
+disallow_untyped_defs = True
+ignore_missing_imports = True
+
+[tool:isort]
+combine_as_imports = True
+force_grid_wrap = 0
+include_trailing_comma = True
+known_first_party = httpx
+known_third_party = brotli,certifi,chardet,cryptography,h11,h2,hstspreload,nox,pytest,rfc3986,setuptools,trustme,uvicorn
+line_length = 88
+multi_line_output = 3
+
+[tool:pytest]
+addopts = --cov=httpx --cov=tests --cov-report=term-missing