generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* install Black linter * lint entire backend with Black * install flake8 formatter * configure flake8 * install isort * run isort to sort imports * fixed name pattern * added /api/healthcheck endpoint * install Black linter * lint entire backend with Black * install flake8 formatter * configure flake8 * install isort * run isort to sort imports * install pre-commit * comment out admin and tests to pass flake8 linter rules * init pre-commit * remove trailing spaces * configure flake8 settings in pre-commit * delete obsolete poetry lock file * configure isort settings * remove precommit hook --------- Co-authored-by: Kevin <[email protected]> Co-authored-by: Kevin Yu <[email protected]>
- Loading branch information
1 parent
ad7903e
commit e3ec821
Showing
25 changed files
with
570 additions
and
287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ dev.env | |
stage.env | ||
.env | ||
__pycache__ | ||
.pytest_cache | ||
.vscode/ | ||
*venv/ | ||
app/frontend/static/frontend/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[flake8] | ||
extend-ignore = E203, W503 | ||
exclude = | ||
migrations | ||
__pycache__ | ||
manage.py | ||
settings.py | ||
env | ||
.pytest_cache | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,6 @@ | |
.idea | ||
DCIM | ||
data | ||
|
||
__pycache__ | ||
.pytest_cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
default_language_version: | ||
# default language version for each language used in the repository | ||
python: python3.11 | ||
repos: | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
args: | ||
- "--profile=black" | ||
- "--thirdparty=django" | ||
exclude: | | ||
(?x)^( | ||
.*/(migrations)/(.)*| | ||
.*/manage\.py$| | ||
.*/settings\.py$ | ||
)$ | ||
language: python | ||
files: ^backend/.*\.py$ | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 24.8.0 | ||
hooks: | ||
- id: black | ||
language: python | ||
files: ^backend/.*\.py$ | ||
|
||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 7.1.1 | ||
hooks: | ||
- id: flake8 | ||
args: | ||
- "--extend-ignore=E203,W503" # Ignore conflicts with Black | ||
exclude: | | ||
(?x)^( | ||
.*/(migrations)/(.)*| | ||
.*/manage\.py$| | ||
.*/settings\.py$ | ||
)$ | ||
language: python | ||
files: ^backend/.*\.py$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from django.contrib import admin | ||
# from django.contrib import admin | ||
|
||
# Register your models here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.