From 1a1e8106ec166ab755af273d7d91c231bff3db9e Mon Sep 17 00:00:00 2001 From: Tianyu Liu Date: Mon, 9 Sep 2024 13:11:28 +0200 Subject: [PATCH] Start removing py files in this branch --- .gitignore | 174 ++++++---------------------------------- .vscode/extensions.json | 14 ---- .vscode/launch.json | 11 +-- .vscode/settings.json | 16 ---- requirements.txt | 49 ----------- ruff.toml | 10 --- 6 files changed, 28 insertions(+), 246 deletions(-) delete mode 100644 .vscode/extensions.json delete mode 100644 .vscode/settings.json delete mode 100644 requirements.txt delete mode 100644 ruff.toml diff --git a/.gitignore b/.gitignore index 8a375dd..169aa31 100644 --- a/.gitignore +++ b/.gitignore @@ -1,153 +1,27 @@ -# Python -*.pyc -__pycache__/ -*.pyo -*.pyd +# If you prefer the allow list template instead of the deny list, see community template: +# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore +# +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib -# Virtual Environment -venv/ -env/ -env.bak/ -env1/ -env2/ +# Test binary, built with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# Dependency directories (remove the comment below to include it) +# vendor/ + +# Go workspace file +go.work +go.work.sum + +# env file .env -# IDEs and Editors -.idea/ -*.sublime-project -*.sublime-workspace - -# Dependency directories -env/ -lib/ -libs/ -lib64/ -build/ -dist/ -egg-info/ -pip-wheel-metadata/ -*.egg-info/ -*.egg -*.whl - -# Distribution / packaging -.Python -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -share/python-wheels/ -*.egg-info/ -.installed.cfg -*.egg -MANIFEST - -# Testing -.pytest_cache/ -.coverage -.tox/ -.nox/ -.cache -nosetests.xml -coverage.xml -*.cover -*.py,cover -.hypothesis/ -.pytest_cache/ -.coverage -.tox/ -.nox/ -.cache -pip-log.txt -pip-delete-this-directory.txt -htmlcov/ -dist/ -docs/_build/ -target/ -.ipynb_checkpoints - -# Translations -*.mo -*.pot - -# Django -*.log -local_settings.py -db.sqlite3 -db.sqlite3-journal - -# Flask -instance/ -.webassets-cache - -# Scrapy -.scrapy - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -# Jupyter Notebook -.ipynb_checkpoints/ - -# IPython -profile_default/ -ipython_config.py - -# pyenv -.python-version - -# pipenv -.Pipfile.lock - -# celery beat schedule file -celerybeat-schedule - -# SageMath parsed files -*.sage.py - -# Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Spyder project settings -.spyderproject -.spyproject - -# Rope project settings -.ropeproject - -# mkdocs documentation -/site - -# mypy -.mypy_cache/ -.dmypy.json -dmypy.json - -# Pyre type checker -.pyre/ - -# pytype static type analyzer -.pytype/ - -# Cython debug symbols -cython_debug/ - -temp_data/ -*.db \ No newline at end of file +**temp_data/** \ No newline at end of file diff --git a/.vscode/extensions.json b/.vscode/extensions.json deleted file mode 100644 index 9d1e703..0000000 --- a/.vscode/extensions.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. - // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp - // List of extensions which should be recommended for users of this workspace. - "recommendations": [ - "ms-python.vscode-pylance", - "ms-python.python", - "ms-python.debugpy", - "charliermarsh.ruff", - "ms-azuretools.vscode-docker" - ], - // List of extensions recommended by VS Code that should not be recommended for users of this workspace. - "unwantedRecommendations": [] -} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index 5c4a271..0f8103e 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,14 +5,11 @@ "version": "0.2.0", "configurations": [ { - "name": "Python Debugger: Current File", - "type": "debugpy", + "name": "Launch Package", + "type": "go", "request": "launch", - "program": "${file}", - "console": "integratedTerminal", - "env": { - "PYTHONPATH": "${workspaceFolder}" - }, + "mode": "auto", + "program": "${workspaceFolder}" } ] } \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index e6b94ee..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "[python]": { - "editor.formatOnSave": true, - "editor.codeActionsOnSave": { - "source.fixAll": "explicit", - "source.organizeImports": "explicit" - }, - "editor.defaultFormatter": "charliermarsh.ruff" - }, - "python.testing.pytestArgs": [ - "src/", - "${workspaceFolder}" - ], - "python.testing.unittestEnabled": false, - "python.testing.pytestEnabled": true, -} \ No newline at end of file diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index e709024..0000000 --- a/requirements.txt +++ /dev/null @@ -1,49 +0,0 @@ -aiosqlite==0.20.0 -annotated-types==0.7.0 -anyio==4.4.0 -certifi==2024.7.4 -charset-normalizer==3.3.2 -click==8.1.7 -dnspython==2.6.1 -email_validator==2.2.0 -fastapi==0.112.1 -fastapi-cli==0.0.5 -fastapi-mqtt==2.2.0 -gmqtt==0.6.16 -gpxpy==1.6.2 -greenlet==3.0.3 -h11==0.14.0 -httpcore==1.0.5 -httptools==0.6.1 -httpx==0.27.0 -idna==3.7 -iniconfig==2.0.0 -Jinja2==3.1.4 -markdown-it-py==3.0.0 -MarkupSafe==2.1.5 -mdurl==0.1.2 -notion-client==2.2.1 -packaging==24.1 -pip-review==1.3.0 -pluggy==1.5.0 -pydantic==2.8.2 -pydantic_core==2.20.1 -Pygments==2.18.0 -pytest==8.3.2 -pytest-asyncio==0.24.0 -python-dotenv==1.0.1 -python-multipart==0.0.9 -PyYAML==6.0.2 -requests==2.32.3 -rich==13.7.1 -shellingham==1.5.4 -sniffio==1.3.1 -SQLAlchemy==2.0.32 -starlette==0.38.2 -typer==0.12.4 -typing_extensions==4.12.2 -urllib3==2.2.2 -uvicorn==0.30.6 -uvloop==0.20.0 -watchfiles==0.23.0 -websockets==12.0 diff --git a/ruff.toml b/ruff.toml deleted file mode 100644 index e7d5ddf..0000000 --- a/ruff.toml +++ /dev/null @@ -1,10 +0,0 @@ -target-version = "py39" -line-length = 144 - -[lint] -select = ["ALL"] -fixable = ["UP034", "I001"] -ignore = ["T201", "D", "ANN101", "TD002", "TD003"] - -[lint.extend-per-file-ignores] -"test*.py" = ["S101"]