summaryrefslogtreecommitdiffstats
path: root/pre-commit.sh (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Only block commits if black fails for certain paths (#14531)23.3.0Alan Rominger2023-10-101-1/+1
|
* Tell Makefile and pre-commit.sh that they are bashRick Elrod2023-07-141-0/+1
| | | | | | | | | | | | | | | On some systems, /bin/sh is a bash symlink and running it will launch bash in sh compatibility mode. However, bash-specific syntax will still work in this mode (for example using == or pipefail). However, on systems where /bin/sh is a symlink to another shell (think: Debian-based) they might not have those bashisms. Set the shell in the Makefile, so that it uses bash (since it is already depending on bash, even though it is calling it as /bin/sh by default), and add a shebang to pre-commit.sh for the same reason. Signed-off-by: Rick Elrod <rick@elrod.me>
* Fix black pre-commit hook (#14212)22.5.0John Westcott IV2023-07-061-1/+1
|
* Fixing pre-commit.sh for OS X (#11953)John Westcott IV2022-03-241-8/+12
|
* Adding ability to run user level pre-commit hooks (#11923)John Westcott IV2022-03-241-0/+19
| | | | | * Adding ability to run user level pre-commit hooks * Adding pre-commit docs in CONTRIBUTING.md
* Workflow changes (#11692)John Westcott IV2022-02-071-5/+7
| | | | | | Modifying workflows to install python for make commands Squashing CI tasks to remove repeated steps Modifying pre-commit.sh to not fail if there are no python file changes
* Remove the shebang line from pre-commit.shJeff Bradberry2021-05-131-2/+0
| | | | since bash isn't available by default on OS X.
* Break out the pre-commit hook into an explicit scriptJeff Bradberry2021-05-121-0/+8
This means that - we don't have to be always updating the underlying .git/hooks/pre-commit file - updates to the logic will just work automatically - the logic of the black logic has been fixed so that AWX_IGNORE_BLACK=1 should work right now