-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 927-recruitment-rejection-email
- Loading branch information
Showing
375 changed files
with
11,277 additions
and
10,657 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 |
---|---|---|
|
@@ -21,6 +21,3 @@ indent_size = 2 | |
|
||
[*.{yml,yaml}] | ||
indent_size = 2 | ||
|
||
[.eslintrc] | ||
indent_size = 2 |
Validating CODEOWNERS rules …
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 @@ | ||
* @emilte @Mathias-a @robines @Snorre98 | ||
backend/ @robines @Snorre98 | ||
frontend/ @robines @Snorre98 | ||
backend/ @Mathias-a @robines @Snorre98 | ||
frontend/ @Mathias-a @robines @Snorre98 |
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,55 @@ | ||
name: 🚀 Feature Request | ||
description: Suggest an idea for this project | ||
title: "[FEATURE] <title>" | ||
labels: ["feature"] | ||
body: | ||
- type: checkboxes | ||
attributes: | ||
label: 👀 Is there an existing feature request for this? | ||
description: Please search to see if a feature request already exists for the feature you are suggesting. | ||
options: | ||
- label: I have searched the existing feature requests | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: 🌟 Feature statement | ||
description: What is your feature request? Please describe. | ||
placeholder: A clear and concise description of what the feature is. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: 👨👩👦 Is the feature related to some other issue or PR? | ||
description: Pleas give the isse or PR-number. | ||
placeholder: "#issue-number" or "#PR-number" | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: 💡 Proposed Solution | ||
description: Describe the solution you'd like | ||
placeholder: A clear and concise description of what you want to happen. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: 🔦 Additional Context | ||
description: Add any other context or screenshots about the feature request here. | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: 🗺️ Where on Samfundet4 do you want the feature? | ||
description: Pleas give a file, or general "area" of Samfundet4 | ||
validations: | ||
required: true | ||
- type: dropdown | ||
attributes: | ||
label: Priority | ||
description: How important is this feature to you? | ||
options: | ||
- Nice to have | ||
- Important | ||
- Critical | ||
validations: | ||
required: true |
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,59 @@ | ||
name: 🐞 Bug | ||
description: File a bug/issue | ||
title: "[BUG] <title>" | ||
labels: ["Bug"] | ||
body: | ||
- type: checkboxes | ||
attributes: | ||
label: 👀 Is there an existing issue for this? | ||
description: Please search to see if an issue already exists for the bug you encountered. | ||
options: | ||
- label: I have searched the existing issues | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: 🚫 Current Behavior | ||
description: A concise description of what you're experiencing. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: ✅ Expected Behavior | ||
description: A concise description of what you expected to happen. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: 🧩 Steps To Reproduce | ||
description: Steps to reproduce the behavior. | ||
placeholder: | | ||
1. In this environment... | ||
1. With this config... | ||
1. Run '...' | ||
1. See error... | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: 🐼 Environment | ||
description: | | ||
examples: | ||
- **OS**: Ubuntu 20.04 | ||
- **Node**: 13.14.0 | ||
- **npm**: 7.6.3 | ||
value: | | ||
- OS: | ||
- Node: | ||
- npm: | ||
render: markdown | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: 🦮 Anything else? | ||
description: | | ||
Links? References? Anything that will give us more context about the issue you are encountering! | ||
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in. | ||
validations: | ||
required: true |
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
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,80 @@ | ||
#!/bin/bash | ||
|
||
########################## | ||
# README: # | ||
########################## | ||
# This is a list of all commands commonly used in the project. | ||
# It was made because poetry doesn't support builtin alias like Pipfile and package.json. Seemed better than installing 3rd party alias tool. | ||
# Preferably this list should be used in all scenarios, but not all environments are alias fiendly (e.g. Dockerfile and non-interactive-shell). | ||
# If you find yourself running a command repeatedly, consider adding it here to share with other developers. | ||
|
||
|
||
# Pros: | ||
# + Overview of possible commands. | ||
# + Easier to search and find commands used in the project. | ||
# + Autocomplete in terminal, shorter, and easier to use. | ||
# + Ensure developers actually use the same commands. | ||
# + Compatible with "all" tools and package managers. | ||
|
||
# Cons: | ||
# - Without more setup, must be sourced manually. | ||
# - Slight risk of overriding personal aliases. | ||
|
||
# Run this to apply aliases: | ||
# source aliases.sh | ||
|
||
|
||
########################## | ||
# _setup: # | ||
########################## | ||
# Enable aliases in CI/CD environments, only available in bash. https://github.com/actions/toolkit/issues/766#issuecomment-928305811 | ||
shopt -s expand_aliases | ||
|
||
|
||
########################## | ||
# misc: # | ||
########################## | ||
alias git-has-change='git diff --quiet' # <filepath> | ||
alias la='ls -la' | ||
alias pip-upgrade='python -m pip install --upgrade pip' | ||
alias pip-install-poetry='python -m pip install poetry' | ||
|
||
|
||
########################## | ||
# poetry: # | ||
########################## | ||
alias poetry-info='poetry env info' | ||
alias poetry-where='poetry-info' # Find location of environment. | ||
alias poetry-sync='poetry install --sync' # Install the exact dependencies from lockfile. | ||
alias poetry-i='poetry-sync' # Shorter alias for 'poetry-sync'. | ||
alias poetry-s='poetry-sync' # Shorter alias for 'poetry-sync'. | ||
alias poetry-lock='poetry lock --no-update' # Locks current dependencies according to the rules in pyproject.toml. Use to make sure current state is valid. This will not update to latest minors etc. IMPORTANT: it doesn't install anything in venv, use 'poetry-sync' for that. | ||
alias poetry-update='poetry lock' # Updates lock on dependencies according to the rules in pyproject.toml. The file 'poetry.lock' will likely change. IMPORTANT: it doesn't install anything in venv, use 'poetry-sync' for that. | ||
alias poetry-u='poetry-update' # Alias for 'poetry-update'. | ||
alias poetry-sync-prod='poetry install --sync --only main' # Sync of dependencies in production. | ||
alias poetry-sync-pipeline='poetry-lock-check && poetry-sync' # Sync of dependencies in pipeline. Fails if outdated lockfile. | ||
alias poetry-lock-check='(poetry check --lock > /dev/null && poetry-lock > /dev/null; git-has-change poetry.lock) || (echo "Outdated poetry.lock"; exit 1) ' # Utilises builtin (insufficient) check, then performs an actual lock to check diff. This should not result in a changed file. | ||
alias poetry-graph="poetry show --tree" # Show dependency graph. | ||
alias poetry-rm="poetry env remove --all" # Completely remove virtual environment. | ||
alias poetry-shell="poetry shell" # Opens a shell within the virtual environment. | ||
alias poetry-outdated="poetry show --outdated" # Show outdated dependencies. | ||
|
||
|
||
########################## | ||
# poetry run: # | ||
########################## | ||
# Scripts piped through poetry environment. | ||
alias poetry-run-ruff-check='poetry run ruff check .' # Run ruff check linter on project. | ||
alias poetry-run-ruff-apply='poetry run ruff check --fix .' # Apply ruff linter on project. | ||
alias poetry-run-ruff-format-check='poetry run ruff format --check .' # Dry ruff format on all files in the project. | ||
alias poetry-run-ruff-format-apply='poetry run ruff format .' # Apply ruff format on all files in the project. | ||
alias poetry-run-mypy-run='poetry run mypy --config-file mypy.ini .' # Run mypy on project. | ||
|
||
alias poetry-run-migrations-make='poetry run python manage.py makemigrations --noinput' # makemigrations | ||
alias poetry-run-migrations-verify='poetry run python manage.py makemigrations --check --dry-run --noinput --verbosity 2' # Verify that migrations are up-to-date and valid. | ||
alias poetry-run-migrations-apply='poetry run python manage.py migrate' # Apply migrations. | ||
alias poetry-run-collectstatic='poetry run python manage.py collectstatic --noinput' # Collect static files from apps to root of project. | ||
|
||
alias poetry-run-pytest-run='poetry run pytest' # Run pytest on project. | ||
alias poetry-run-pipeline='poetry-mypy-run && poetry-ruff-check && poetry-ruff-format-check && poetry-migrations-verify && poetry-pytest-run' # Run all checks in pipeline. | ||
alias poetry-run-seed='poetry run python manage.py seed' # Apply seed of database. |
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.