Skip to content

Commit

Permalink
updating script
Browse files Browse the repository at this point in the history
  • Loading branch information
fmilthaler committed Jul 22, 2023
1 parent 918a547 commit 5b9463f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scripts/auto-format-commit.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
#!/bin/sh

echo "Updating README files:"
# Update version number in README files:
scripts/update_version_readme.sh
# Update README.tex.md
scripts/update_readme.tex.md.sh

# Code formatting with isort and black
echo "Code formatting with isort and black:"
isort $(git ls-files '*.py')
black $(git ls-files '*.py')

git add $(git ls-files)
# Stage changes
#git add $(git ls-files)
git add --udpate

# Check Git diff-index
git diff-index --quiet HEAD --
Expand Down

0 comments on commit 5b9463f

Please sign in to comment.