File tree Expand file tree Collapse file tree 3 files changed +25
-6
lines changed Expand file tree Collapse file tree 3 files changed +25
-6
lines changed Original file line number Diff line number Diff line change 1
1
mypy == 0.790
2
2
flake8 == 3.8.*
3
- yapf == 0.30.*
3
+ black == 21.4b2
4
4
5
5
codespell == 1.17.1
6
6
ipython == 7.16.1
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ if [ "${BASH_SOURCE[0]}" = "${0}" ]; then
17
17
if [ " ${1:- } " = " --help" ]; then
18
18
usage
19
19
else
20
- yapf -ipr pystac tests
20
+ black pystac
21
+ black tests
21
22
fi
22
23
fi
Original file line number Diff line number Diff line change @@ -17,14 +17,28 @@ if [ "${BASH_SOURCE[0]}" = "${0}" ]; then
17
17
if [ " ${1:- } " = " --help" ]; then
18
18
usage
19
19
else
20
- # Types
20
+ echo
21
+ echo " -- CHECKING TYPES WITH PYRIGHT --"
22
+ echo
23
+
21
24
scripts/pyright pystac tests
22
25
23
- # Lint
26
+ echo
27
+ echo " -- LINTING WITH FLAKE8 --"
28
+ echo
29
+
24
30
flake8 pystac tests
25
31
26
- # Code formatting
27
- yapf -dpr pystac tests
32
+ echo
33
+ echo " -- CHECKING FORMAT WITH BLACK --"
34
+ echo
35
+
36
+ black --check pystac
37
+ black --check tests
38
+
39
+ echo
40
+ echo " -- CHECKING SPELLING WITH CODESPELL --"
41
+ echo
28
42
29
43
# Code spelling
30
44
codespell -I .codespellignore -f \
@@ -36,6 +50,10 @@ if [ "${BASH_SOURCE[0]}" = "${0}" ]; then
36
50
* .py \
37
51
* .md
38
52
53
+ echo
54
+ echo " -- RUNNING UNIT TESTS --"
55
+ echo
56
+
39
57
# Test suite with coverage enabled
40
58
coverage run --source=pystac/ -m unittest discover tests/
41
59
coverage xml
You can’t perform that action at this time.
0 commit comments