Skip to content

Commit

Permalink
Fix Precommit (#279)
Browse files Browse the repository at this point in the history
* 🔥 Add validate files

* Update pre-commit to actually work

* Fixed pre-commit-config finally

* Lock

* Update pip

* Pipfile lock

* Update README

---------

Co-authored-by: Joy Liu <[email protected]>
Co-authored-by: Justin Zhang <[email protected]>
  • Loading branch information
3 people authored Apr 14, 2024
1 parent f7220cf commit 39ee027
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 8 deletions.
Empty file added .github/workflows/validate.yaml
Empty file.
15 changes: 8 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
repos:
- repo: https://github.com/pennlabs/pre-commit-hooks
rev: stable
rev: v1.0-mobile-backend
hooks:
- id: isort
- id: flake8
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- id: black
args: [-l100]
- id: isort
args: []
- id: flake8
args: [--config, backend/setup.cfg]
- id: detect-private-key
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ Final Steps:
- `pipenv run python manage.py migrate`
- `pipenv run python manage.py runserver 8000`

Setting up precommit:
- `pipenv run pre-commit install`

## Creating Users

To create users, you first have to create a main superuser.
Expand Down
1 change: 1 addition & 0 deletions backend/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ redis = "*"
python-dateutil = "*"
selenium = "*"
webdriver-manager = "*"
pre-commit = "*"

[requires]
python_version = "3.11"
74 changes: 73 additions & 1 deletion backend/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 39ee027

Please sign in to comment.