Include tests/ in lint
Browse files- shell/format.sh +3 -3
- shell/lint.sh +3 -3
shell/format.sh
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
#!/bin/bash
|
2 |
-
isort --sl postly/ app.py
|
3 |
-
black --line-length 120 postly/ app.py
|
4 |
-
flake8 --max-line-length 120 postly/ app.py
|
|
|
1 |
#!/bin/bash
|
2 |
+
isort --sl postly/ tests/ app.py
|
3 |
+
black --line-length 120 postly/ tests/ app.py
|
4 |
+
flake8 --max-line-length 120 postly/ tests/ app.py
|
shell/lint.sh
CHANGED
@@ -1,19 +1,19 @@
|
|
1 |
#!/bin/bash
|
2 |
-
isort --check --sl -c postly/ app.py
|
3 |
if ! [ $? -eq 0 ]
|
4 |
then
|
5 |
echo "Please run \"sh shell/format.sh\" to format the code."
|
6 |
exit 1
|
7 |
fi
|
8 |
echo "no issues with isort"
|
9 |
-
flake8 --max-line-length 120 postly/ app.py
|
10 |
if ! [ $? -eq 0 ]
|
11 |
then
|
12 |
echo "Please fix the code style issue."
|
13 |
exit 1
|
14 |
fi
|
15 |
echo "no issues with flake8"
|
16 |
-
black --check --line-length 120 postly/ app.py
|
17 |
if ! [ $? -eq 0 ]
|
18 |
then
|
19 |
echo "Please run \"sh shell/format.sh\" to format the code."
|
|
|
1 |
#!/bin/bash
|
2 |
+
isort --check --sl -c postly/ tests/ app.py
|
3 |
if ! [ $? -eq 0 ]
|
4 |
then
|
5 |
echo "Please run \"sh shell/format.sh\" to format the code."
|
6 |
exit 1
|
7 |
fi
|
8 |
echo "no issues with isort"
|
9 |
+
flake8 --max-line-length 120 postly/ tests/ app.py
|
10 |
if ! [ $? -eq 0 ]
|
11 |
then
|
12 |
echo "Please fix the code style issue."
|
13 |
exit 1
|
14 |
fi
|
15 |
echo "no issues with flake8"
|
16 |
+
black --check --line-length 120 postly/ tests/ app.py
|
17 |
if ! [ $? -eq 0 ]
|
18 |
then
|
19 |
echo "Please run \"sh shell/format.sh\" to format the code."
|