Skip to content
Myr

lint

This file

Path

scripts/lint

12 lines · 216 bytes

Last changed by

Use ruff instead of flake8, autoflake and isort (#2648)Marcelo Trylesinskibefore adoptiondaec2bd

History of this file

Take it

1#!/bin/sh -e23export PREFIX=""4if [ -d 'venv' ] ; then5    export PREFIX="venv/bin/"6fi7export SOURCE_FILES="httpx tests"89set -x1011${PREFIX}ruff --fix $SOURCE_FILES12${PREFIX}black --target-version=py37 $SOURCE_FILES