Skip to content

Commit

Permalink
deprecate
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGrace2282 committed May 15, 2024
1 parent fa2d03a commit 32f7d3d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ defaults:
run:
shell: bash


jobs:
format:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
default_stages: [commit, push]
fail_fast: false
exclude: ^tin/(static/.*vendor|.*migrations)

repos:
Expand Down
3 changes: 3 additions & 0 deletions scripts/check.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash
cd "$(dirname -- "$(dirname -- "$(readlink -f "$0")")")"

echo "This script is now deprecated, please use pre-commit instead."
echo "To run pre-commit before commiting, do 'pre-commit install'"

for cmd in flake8 isort pylint; do
if [[ ! -x "$(which "$cmd")" ]]; then
echo "Could not find $cmd. Please make sure that flake8, isort, and pylint are all installed."
Expand Down
3 changes: 3 additions & 0 deletions scripts/format.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash
cd "$(dirname -- "$(dirname -- "$(readlink -f "$0")")")"

echo "This script is now deprecated, please use pre-commit instead"
echo "To run pre-commit before commiting, do 'pre-commit install'"

for cmd in black autopep8 isort; do
if [[ ! -x "$(which "$cmd")" ]]; then
echo "Could not find $cmd. Please make sure that black, autopep8, and isort are all installed."
Expand Down

0 comments on commit 32f7d3d

Please sign in to comment.