File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh -e
2
+ set -x
3
+
4
+ autoflake --remove-all-unused-imports --recursive --remove-unused-variables --in-place docs/src/ fastapi tests --exclude=__init__.py
5
+ black fastapi tests docs/src
6
+ isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --combine-as --line-width 88 --recursive --thirdparty fastapi --apply fastapi tests docs/src
Original file line number Diff line number Diff line change 1
- #! /bin/sh -e
1
+ #! /usr/bin/env bash
2
+
3
+ set -e
2
4
set -x
3
5
4
- autoflake --remove-all-unused-imports --recursive --remove-unused-variables --in-place docs/src/ fastapi tests --exclude=__init__.py
5
- black fastapi tests docs/src
6
- isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --combine-as --line-width 88 --recursive --thirdparty fastapi --apply fastapi tests docs/src
6
+ mypy fastapi --disallow-untyped-defs --follow-imports=skip
7
+ black fastapi tests --check
8
+ isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --combine-as --line-width 88 --recursive --check-only --thirdparty fastapi fastapi tests
Original file line number Diff line number Diff line change 10
10
11
11
export PYTHONPATH=./docs/src
12
12
pytest --cov=fastapi --cov=tests --cov=docs/src --cov-report=term-missing ${@ }
13
- mypy fastapi --disallow-untyped-defs --follow-imports=skip
14
- black fastapi tests --check
15
- isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --combine-as --line-width 88 --recursive --check-only --thirdparty fastapi fastapi tests
13
+ bash ./scripts/lint.sh
You can’t perform that action at this time.
0 commit comments