forked from zackees/transcribe-anything
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlint
executable file
·34 lines (25 loc) · 765 Bytes
/
lint
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#! /bin/bash
set -e
echo activating venv...
. ./activate.sh
echo installing pip dependencies
pip install -r requirements.txt
echo running black...
black transcribe_anything tests --exclude 'transcribe_anything/venv'
echo running isort...
isort transcribe_anything tests
echo re-running black now
black transcribe_anything tests --exclude 'transcribe_anything/venv'
# does --clean exist
if [[ $* == *--no-ruff* ]]; then
echo skipping ruff...
else
echo running ruff...
ruff check transcribe_anything tests
fi
# echo running flake8...
# flake8 transcribe_anything tests install_cuda.py
echo running pylint...
pylint transcribe_anything tests --disable=R0801
echo running mypy...
mypy transcribe_anything tests --exclude 'transcribe_anything/venv'