Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ exclude =
*migrations*
./config/settings.py
./team_production_system/management/commands/add_superuser.py

dictionaries = en_US,python,technical,django
; The bugbear plugin allows for a 10% safety net, so max-line-length is effectively 88
; This is due to ignoring E501 and adding B950
max-line-length = 80
extend-ignore = E501
extend-select = B950
5 changes: 2 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

### **1. Targeted Issue** ###

*(The first step to a good solution is knowing the problem. Please link the issue here.)*
*(The first step to a good solution is knowing the problem. Please link the issue here. Make sure to say 'fixes' before the linked issue)*

Issue #... or
Ticket #...
This PR fixes Issue #...


### **2. Overview of Solution** ###
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ local_settings.py
db.sqlite3
db.sqlite3-journal
media
requirements.txt
media/profile_photo/*

# If your build process includes running collectstatic, then you probably don't need or want to include staticfiles/
# in your Git repository. Update and uncomment the following line accordingly.
Expand Down
43 changes: 38 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,47 @@
repos:
- repo: https://github.com/PyCQA/isort
rev: "5.12.0"
hooks:
- id: isort
stages: [pre-commit]
- repo: https://github.com/psf/black
rev: "23.10.1"
hooks:
- id: black
stages: [pre-commit]
- repo: https://github.com/PyCQA/flake8
rev: "6.1.0"
hooks:
- id: flake8
stages: [pre-commit]
additional_dependencies:
- "flake8-bugbear"
- "pep8-naming"
- "flake8-spellcheck"
- "flake8-eradicate"
- "flake8-multiline-containers"
- "flake8-clean-block"
- "flake8-secure-coding-standard"
- "flake8-comprehensions"
- "flake8-quotes"
- repo: local
hooks:
- id: commit-msg-lint
name: 'Commit Message Lint'
entry: ./scripts/commit-msg-lint.sh
language: script
stages: [commit-msg]
- id: branch-name-lint
name: 'Branch Name Lint'
entry: ./scripts/branch-name-lint.sh
language: script
always_run: true
pass_filenames: false
- id: commit-msg-lint
name: 'Commit Message Lint'
entry: ./scripts/commit-msg-lint.sh
language: script
stages: [commit-msg]
stages: [pre-push]
- id: django-test
name: 'Checking Tests'
entry: pipenv run python manage.py test
always_run: true
pass_filenames: false
language: system
stages: [pre-push]
18 changes: 14 additions & 4 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,25 @@ django-multiselectfield = "*"
boto3 = "*"
sentry-sdk = {extras = ["django"], version = "*"}
pytz = "*"
flake8 = "*"
redis = "*"
coverage = "*"
celery = "*"
django-celery-beat = "*"
pre-commit = "*"

[dev-packages]
autopep8 = "*"
flake8 = "*"
flake8-bugbear = "*"
pep8-naming = "*"
flake8-spellcheck = "*"
flake8-eradicate = "*"
black = "*"
flake8-multiline-containers = "*"
flake8-clean-block = "*"
flake8-secure-coding-standard = "*"
isort = "*"
flake8-comprehensions = "*"
flake8-quotes = "*"
pre-commit = "*"
coverage = "*"

[requires]
python_version = "3.10"
1,209 changes: 685 additions & 524 deletions Pipfile.lock

Large diffs are not rendered by default.

Loading