-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstyle.sh
executable file
·40 lines (34 loc) · 932 Bytes
/
style.sh
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
35
36
37
38
#!/bin/bash
# -----
# Black
# -----
echo "---------------------------------"
echo "Checking code style with Black..."
echo "---------------------------------"
black --check . --diff
# black --check . --diff --line-length=79
# ------
# flake8
# ------
# flake8 errors:
# E501 line too long (## > 79 characters)
# E203 whitespace before ':'
#
# flake8 warnings:
# W503 line break occurred before a binary operator
#
# flake8 . --statistics
# E501 - line length exceeds 79 characters
# https://peps.python.org/pep-0008/#maximum-line-length
echo "----------------------------------"
echo "Checking code style with flake8..."
echo "----------------------------------"
flake8 geo/ --ignore E203,E501,W503 --statistics
flake8 cli/ --ignore E203,E501,W503 --statistics
# ----
# mypi
# ----
# https://github.com/python/mypy
echo "-----------------------------"
echo "The script has now completed."
echo "-----------------------------"