diff --git a/.gitignore b/.gitignore index ab3e8ce..7e534e7 100644 --- a/.gitignore +++ b/.gitignore @@ -161,4 +161,3 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ - diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..bebfff2 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,45 @@ +repos: + - repo: https://github.com/asottile/add-trailing-comma + rev: v4.0.0 + hooks: + - id: add-trailing-comma + + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v6.0.0 + hooks: + - id: check-ast + - id: check-builtin-literals + - id: check-docstring-first + - id: check-executables-have-shebangs + - id: check-merge-conflict + - id: check-toml + - id: check-vcs-permalinks + - id: end-of-file-fixer + - id: mixed-line-ending + - id: name-tests-test + args: [--pytest-test-first] + - id: trailing-whitespace + + - repo: https://github.com/adamchainz/django-upgrade + rev: 1.30.0 + hooks: + - id: django-upgrade + args: [--target-version, "6.0"] + + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.15.10 + hooks: + - id: ruff-check + args: ["--fix", "--exit-non-zero-on-fix"] + - id: ruff-format + + - repo: https://github.com/asottile/pyupgrade + rev: v3.21.2 + hooks: + - id: pyupgrade + args: ["--py313-plus"] + + - repo: https://github.com/rhysd/actionlint + rev: v1.7.12 + hooks: + - id: actionlint diff --git a/.vscode/settings.json b/.vscode/settings.json index 620582e..2a17d9b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,6 +2,8 @@ "cSpell.words": [ "Hellsén", "Joakim", + "pytest", + "pyupgrade", "Tussilago" ] -} \ No newline at end of file +} diff --git a/README.md b/README.md index b96c66e..525f044 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # Tussilago -A platform to run and host Python applications \ No newline at end of file +A platform to run and host containerized applications, with a focus on Django apps. It provides an easy-to-use web interface for managing applications, as well as a powerful API for automation and integration. + +Email: tlovinator@gmail.com + +Discord: TheLovinator#9276 + +# License + +The AGPL license applies to the infrastructure platform (the SaaS backend, the deployment scripts, the web UI). It does not infect the user's code. If a tenant hosts a proprietary, closed-source Django app on this platform, their code remains completely theirs. diff --git a/main.py b/main.py deleted file mode 100644 index 8200eef..0000000 --- a/main.py +++ /dev/null @@ -1,6 +0,0 @@ -def main() -> None: - print("Hello from tussilago!") - - -if __name__ == "__main__": - main()