Skip to content
Myr

Move all tooling configuration to setup.cfg (#204)

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

authored by Humberto Rocha · committed by Seth Michael Larson · parent 1b82d63 · Browse files · 3 files+23 added−29 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+23 added−29 removed

  • other:+23 added−29 removed

3 files+23 added−29 removed

deleted:.isort.cfg-3 removed
1[settings]2known_first_party = httpx3known_third_party = brotli,certifi,chardet,cryptography,h11,h2,hstspreload,nox,pytest,rfc3986,setuptools,trustme,uvicorn
modified:noxfile.py+4 added-26 removed
7 unmodified lines
8 session.install("autoflake", "black", "flake8", "isort", "seed-isort-config")910 session.run("autoflake", "--in-place", "--recursive", *source_files)11 session.run("seed-isort-config", "--application-directories=httpx")12 session.run(13 "isort",14 "--project=httpx",15 "--multi-line=3",16 "--trailing-comma",17 "--force-grid-wrap=0",18 "--combine-as",19 "--line-width=88",20 "--recursive",21 "--apply",22 *source_files,23 )12 session.run("isort", "--project=httpx", "--recursive", "--apply", *source_files)13 session.run("black", "--target-version=py36", *source_files)1415 check(session)16
4 unmodified lines
21 "black", "flake8", "flake8-bugbear", "flake8-comprehensions", "mypy"22 )2324 session.run("black", "--check", "--target-version=py36", *source_files)36 session.run(37 "flake8", "--max-line-length=88", "--ignore=W503,E203,B305", *source_files38 )39 session.run("mypy", "httpx", "--ignore-missing-imports", "--disallow-untyped-defs")25 session.run("flake8", *source_files)26 session.run("mypy", "httpx")272829@nox.session(reuse_venv=True)30def docs(session):
5 unmodified lines
36@nox.session(python=["3.6", "3.7", "3.8"])37def test(session):38 session.install("-r", "test-requirements.txt")3953 session.run(54 "coverage",55 "run",56 "--omit='*'",57 "-m",58 "pytest",59 "--cov=httpx",60 "--cov=tests",61 "--cov-report=term-missing",62 )40 session.run("python", "-m", "pytest")
added:setup.cfg+19 added
1[flake8]2ignore = W503, E203, B3053max-line-length = 8845[mypy]6disallow_untyped_defs = True7ignore_missing_imports = True89[tool:isort]10combine_as_imports = True11force_grid_wrap = 012include_trailing_comma = True13known_first_party = httpx14known_third_party = brotli,certifi,chardet,cryptography,h11,h2,hstspreload,nox,pytest,rfc3986,setuptools,trustme,uvicorn15line_length = 8816multi_line_output = 31718[tool:pytest]19addopts = --cov=httpx --cov=tests --cov-report=term-missing