From 7f8c47273ac63f360a76358cb710e3f6ee87a6f9 Mon Sep 17 00:00:00 2001 From: JSC Date: Thu, 10 Jul 2025 20:53:22 +0200 Subject: [PATCH] Initialize backend project with essential files and configurations --- .gitignore | 10 ++++++++++ .python-version | 1 + README.md | 0 main.py | 6 ++++++ pyproject.toml | 18 ++++++++++++++++++ 5 files changed, 35 insertions(+) create mode 100644 .gitignore create mode 100644 .python-version create mode 100644 README.md create mode 100644 main.py create mode 100644 pyproject.toml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..505a3b1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +# Python-generated files +__pycache__/ +*.py[oc] +build/ +dist/ +wheels/ +*.egg-info + +# Virtual environments +.venv diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..e4fba21 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.12 diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/main.py b/main.py new file mode 100644 index 0000000..997a4ad --- /dev/null +++ b/main.py @@ -0,0 +1,6 @@ +def main(): + print("Hello from backend!") + + +if __name__ == "__main__": + main() diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..377dc92 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,18 @@ +[project] +name = "backend" +version = "0.1.0" +description = "Add your description here" +readme = "README.md" +requires-python = ">=3.12" +dependencies = [] + +[dependency-groups] +dev = ["black==25.1.0", "pytest==8.4.1", "ruff==0.12.2"] + +[tool.black] +line-length = 80 + +[tool.ruff] +line-length = 80 +lint.select = ["ALL"] +lint.ignore = ["D100", "D104"]