Remove main.py, add pre-commit configuration, update .vscode settings, and modify README

This commit is contained in:
Joakim Hellsén 2026-04-17 21:29:22 +02:00
commit dabb0d34bf
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
5 changed files with 57 additions and 9 deletions

1
.gitignore vendored
View file

@ -161,4 +161,3 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear # 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. # option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/ #.idea/

45
.pre-commit-config.yaml Normal file
View file

@ -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

View file

@ -2,6 +2,8 @@
"cSpell.words": [ "cSpell.words": [
"Hellsén", "Hellsén",
"Joakim", "Joakim",
"pytest",
"pyupgrade",
"Tussilago" "Tussilago"
] ]
} }

View file

@ -1,3 +1,11 @@
# Tussilago # Tussilago
A platform to run and host Python applications 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.

View file

@ -1,6 +0,0 @@
def main() -> None:
print("Hello from tussilago!")
if __name__ == "__main__":
main()