From aff36137a6d89c6bbf0dd08549a18e6a35e27e80 Mon Sep 17 00:00:00 2001 From: Farzali Absalamov Date: Tue, 5 Mar 2024 09:57:40 +0100 Subject: [PATCH] KIT-3262 added note on testing to readme --- .vscode/settings.json | 4 +++- README.md | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 1f010bc..e389129 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -25,7 +25,9 @@ "python.formatting.blackArgs": [ "--line-length=120" ], "[python]": { "editor.formatOnSave": true }, "[json]": { "editor.formatOnSave": true}, - "editor.codeActionsOnSave": { "source.organizeImports": true }, + "editor.codeActionsOnSave": { + "source.organizeImports": "explicit" + }, "python.linting.mypyEnabled": true, "mypy.targets": [ // Required by dmypy - otherwise mypy has an error in vscode diff --git a/README.md b/README.md index 42f02f4..13dec1c 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,13 @@ Just install vscode with dev containers extension. All required extensions and c * Create a tag with the same version number * Let github do the rest +## How to test + +To avoid publishing to pypi unnecessarily you can do as follows + +* Tag your branch however you like +* Use the chosen tag in the requirements.txt-file of the project you want to test this library in, eg. `sag_py_web_common==` +* Rebuild/redeploy your project [codeclimate-image]:https://api.codeclimate.com/v1/badges/533686a1f4d644151adb/maintainability [codeclimate-url]:https://codeclimate.com/github/SamhammerAG/sag_py_web_common/maintainability