We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 596a7c5 commit 965c056Copy full SHA for 965c056
libs/superagent/lint-and-format.sh
@@ -3,6 +3,9 @@
3
# getting changed files (only staged)
4
changes=$(git diff --name-only --cached | grep '^libs/superagent.*\.py$' | sed 's|^libs/superagent/||')
5
6
+# Filter deleted files
7
+changes=$(echo "$changes" | while read -r file; do [ -e "$file" ] && echo "$file"; done)
8
+
9
lint() {
10
poetry run black $changes
11
# sort imports
0 commit comments