diff --git a/.deepsource.toml b/.deepsource.toml index ad41cf0..b6b20fd 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 version = 1 test_patterns = ["classquiz/tests/**", "test_*.py"] diff --git a/.dockerignore b/.dockerignore index 81a38be..761d33e 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1 +1,4 @@ +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 .env* diff --git a/.flake8 b/.flake8 index b5eaf3d..7c6c7e1 100644 --- a/.flake8 +++ b/.flake8 @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 [flake8] max-line-length = 120 extend-ignore = E203 diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 18e0402..f2a2922 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,2 +1,5 @@ +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 ko_fi: mawoka liberapay: Mawoka diff --git a/.github/ISSUE_TEMPLATE/Feature_request.md b/.github/ISSUE_TEMPLATE/Feature_request.md index a27612a..0b5fe58 100644 --- a/.github/ISSUE_TEMPLATE/Feature_request.md +++ b/.github/ISSUE_TEMPLATE/Feature_request.md @@ -1,3 +1,8 @@ + --- name: Feature request about: Make a clear demand for improving ClassQuiz 💪 diff --git a/.github/ISSUE_TEMPLATE/Repo_architecture_changes.md b/.github/ISSUE_TEMPLATE/Repo_architecture_changes.md index 6510be9..9ed93fc 100644 --- a/.github/ISSUE_TEMPLATE/Repo_architecture_changes.md +++ b/.github/ISSUE_TEMPLATE/Repo_architecture_changes.md @@ -1,3 +1,8 @@ + --- name: Project refactoring about: All issues concerning CI/CD, improvements of documentation, development setup etc. 🔧 diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index bbfc02c..0004577 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 name: Bug Report description: File a bug report labels: ["bug"] diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index fc94927..2b8a45c 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,3 +1,9 @@ + + #### :tophat: What? Why? *Please describe your pull request.* diff --git a/.github/codecov.yml b/.github/codecov.yml index e9e5a4f..be10478 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 codecov: require_ci_to_pass: false diff --git a/.github/workflows/backend_lint.yml b/.github/workflows/backend_lint.yml index 6244a52..424f914 100644 --- a/.github/workflows/backend_lint.yml +++ b/.github/workflows/backend_lint.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 + # This workflow will install Python dependencies, run tests and lint with a variety of Python versions # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions diff --git a/.github/workflows/build_backend.yml b/.github/workflows/build_backend.yml index 5fd62e3..0413205 100644 --- a/.github/workflows/build_backend.yml +++ b/.github/workflows/build_backend.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 + # This workflow will install Python dependencies, run tests and lint with a variety of Python versions # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions diff --git a/.github/workflows/build_frontend.yml b/.github/workflows/build_frontend.yml index 04cd4c9..6fc106b 100644 --- a/.github/workflows/build_frontend.yml +++ b/.github/workflows/build_frontend.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 + # This workflow will install Python dependencies, run tests and lint with a variety of Python versions # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions diff --git a/.github/workflows/frontend_lint.yml b/.github/workflows/frontend_lint.yml index 8086b68..2ff7b73 100644 --- a/.github/workflows/frontend_lint.yml +++ b/.github/workflows/frontend_lint.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 + # This workflow will install Python dependencies, run tests and lint with a variety of Python versions # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index f711f30..7f5339a 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 + # .github/workflows/app.yaml name: PyTest on: diff --git a/.gitignore b/.gitignore index 0b48df5..f5c170f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 + __pycache__/ .idea/ node_modules/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2b3ff16..cc1f29a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 + # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks repos: diff --git a/.tokeignore b/.tokeignore index 832776c..69314d6 100644 --- a/.tokeignore +++ b/.tokeignore @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 + *.y*ml *.json diff --git a/CONTACT.md b/CONTACT.md index 94eb968..c1e19ec 100644 --- a/CONTACT.md +++ b/CONTACT.md @@ -1,3 +1,8 @@ + Welcome to the ClassQuiz community Grant and indulge critique constructively, within desired privacy. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1fa1177..43d1d54 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,8 @@ + # Contribute to ClassQuiz For the development-setup, please check out the diff --git a/Caddyfile b/Caddyfile index 8f9581a..ee3c753 100644 --- a/Caddyfile +++ b/Caddyfile @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 + #* { :8080 { # tls /home/mawoka/certs/cert.pem /home/mawoka/certs/key.pem diff --git a/Caddyfile-docker b/Caddyfile-docker index d8685c7..876e2b4 100644 --- a/Caddyfile-docker +++ b/Caddyfile-docker @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 + :8080 { reverse_proxy * http://frontend:3000 reverse_proxy /api/* http://api:80 diff --git a/Dockerfile b/Dockerfile index 062cdeb..a07ba61 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 + FROM python:3.11-slim COPY Pipfile* /app/ diff --git a/Pipfile b/Pipfile index f010ccd..8f1f6be 100644 --- a/Pipfile +++ b/Pipfile @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 + [[source]] url = "https://pypi.org/simple" verify_ssl = true diff --git a/Pipfile.lock.license b/Pipfile.lock.license new file mode 100644 index 0000000..f883a78 --- /dev/null +++ b/Pipfile.lock.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) + +SPDX-License-Identifier: MPL-2.0 diff --git a/README.md b/README.md index e2896fb..1c50792 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ + + GitHub Repo stars GitHub contributors GitHub forks diff --git a/SocketIo.md b/SocketIo.md index c25c3bb..9c96694 100644 --- a/SocketIo.md +++ b/SocketIo.md @@ -1,3 +1,9 @@ + + # Socket.IO-Client-Docs ## Main structure diff --git a/alembic.ini b/alembic.ini index ebf940a..e07c686 100644 --- a/alembic.ini +++ b/alembic.ini @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 + # A generic, single database configuration. [alembic] diff --git a/classquiz/__init__.py b/classquiz/__init__.py index 6984834..8baaf10 100644 --- a/classquiz/__init__.py +++ b/classquiz/__init__.py @@ -1,6 +1,6 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at https://mozilla.org/MPL/2.0/. +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 import sentry_sdk from fastapi import FastAPI, Request diff --git a/classquiz/auth.py b/classquiz/auth.py index 5964cc6..93f4c23 100644 --- a/classquiz/auth.py +++ b/classquiz/auth.py @@ -1,6 +1,7 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at https://mozilla.org/MPL/2.0/. +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 + import uuid from datetime import timedelta from typing import Dict diff --git a/classquiz/cache.py b/classquiz/cache.py index 14fd059..2aee0c9 100644 --- a/classquiz/cache.py +++ b/classquiz/cache.py @@ -1,6 +1,6 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at https://mozilla.org/MPL/2.0/. +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 import uuid from json import loads diff --git a/classquiz/config.py b/classquiz/config.py index 853ce74..4bf50b8 100644 --- a/classquiz/config.py +++ b/classquiz/config.py @@ -1,6 +1,7 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at https://mozilla.org/MPL/2.0/. +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 + import re from functools import lru_cache diff --git a/classquiz/db/__init__.py b/classquiz/db/__init__.py index cc00f70..f4e35bc 100644 --- a/classquiz/db/__init__.py +++ b/classquiz/db/__init__.py @@ -1,6 +1,7 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at https://mozilla.org/MPL/2.0/. +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 + import databases import sqlalchemy diff --git a/classquiz/db/models.py b/classquiz/db/models.py index 18e6b30..ccf8a34 100644 --- a/classquiz/db/models.py +++ b/classquiz/db/models.py @@ -1,6 +1,8 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at https://mozilla.org/MPL/2.0/. +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 + + import os import uuid from datetime import datetime diff --git a/classquiz/db/quiztivity.py b/classquiz/db/quiztivity.py index 5bfdc5f..4eb283d 100644 --- a/classquiz/db/quiztivity.py +++ b/classquiz/db/quiztivity.py @@ -1,6 +1,8 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at https://mozilla.org/MPL/2.0/. +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 + + from pydantic import BaseModel import enum diff --git a/classquiz/emails/__init__.py b/classquiz/emails/__init__.py index a398acc..c1f6ef0 100644 --- a/classquiz/emails/__init__.py +++ b/classquiz/emails/__init__.py @@ -1,6 +1,7 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at https://mozilla.org/MPL/2.0/. +# SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) +# +# SPDX-License-Identifier: MPL-2.0 + import os import smtplib diff --git a/classquiz/emails/templates/footer.jinja2 b/classquiz/emails/templates/footer.jinja2 index 7a8e3c3..803d3e1 100644 --- a/classquiz/emails/templates/footer.jinja2 +++ b/classquiz/emails/templates/footer.jinja2 @@ -1,3 +1,8 @@ +