check
This file
Path
scripts/check
14 lines · 289 bytes
Last changed by
Use ruff instead of flake8, autoflake and isort (#2648)Marcelo Trylesinskibefore adoptiondaec2bd
History of this fileTake it
The walk stopped after 200 commits: lines older than 321d4aa point at it.
Fix Headers.update to correctly handle repeated headers (#2038)Adrian Garcia Badaraccobefore adoption321d4aa
lines 1–10why, one step back1#!/bin/sh -e23export PREFIX=""4if [ -d 'venv' ] ; then5 export PREFIX="venv/bin/"6fi7export SOURCE_FILES="httpx tests"89set -x10Add script to make sure CHANGELOG is always in sync with `__version__` (#2297)Marcelo Trylesinskibefore adoption2b2269d
line 11why, one step back11./scripts/sync-versionReplace `black` Python target version from 3.6 to 3.7 (#2343)Marcelo Trylesinskibefore adoptiona754e71
line 12why, one step back12${PREFIX}black --check --diff --target-version=py37 $SOURCE_FILESFix Headers.update to correctly handle repeated headers (#2038)Adrian Garcia Badaraccobefore adoption321d4aa
line 13why, one step back13${PREFIX}mypy $SOURCE_FILESUse ruff instead of flake8, autoflake and isort (#2648)Marcelo Trylesinskibefore adoptiondaec2bd
line 14why, one step back14${PREFIX}ruff check --diff $SOURCE_FILES