Skip to content

Commit 4d9458a

Browse files
Add autofix script that defers to pep8.
1 parent ef830f0 commit 4d9458a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

scripts/autofix

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env bash
2+
3+
4+
#
5+
# NAVIGATE TO CORRECT DIRECTORY
6+
#
7+
8+
# start by going to script dir so all movements
9+
# from here are relative
10+
SCRIPT_DIR=`dirname $(realpath "$0")`
11+
cd $SCRIPT_DIR
12+
13+
# go to app dir
14+
cd ..
15+
16+
# enable app virtual environment
17+
eval "$(direnv export bash)"
18+
19+
#
20+
# RUN AUTFIXER
21+
#
22+
23+
echo "Applying PEP 8 fixes..."
24+
autopep8 --in-place -r db_wrapper tests
25+
echo "Done."

0 commit comments

Comments
 (0)