add developer tools

This commit is contained in:
Fedor Lyanguzov
2024-12-19 20:44:12 +03:00
parent b13c53686a
commit d1200836c8
3 changed files with 9 additions and 10 deletions
+4 -2
View File
@@ -6,12 +6,14 @@ To start developing:
``` ```
python -m venv .venv python -m venv .venv
source .venv/Scripts/activate source .venv/Scripts/activate
pip install -e . pip install -e .[test,lint]
# work related commands here # work related commands here
deactivate deactivate
``` ```
To run tests: Tools:
``` ```
pytest pytest
flake8 vpn_manager
black vpn_manager
``` ```
+3 -3
View File
@@ -7,15 +7,15 @@ packages = ["vpn_manager"]
[project] [project]
name = "vpn-manager" name = "vpn-manager"
description = "Manage WireGuard VPN peers (both server and clients)"
version = "2024.12.0a" version = "2024.12.0a"
license = {file = "LICENSE"}
readme = "README.md"
requires-python = ">=3.8" requires-python = ">=3.8"
dependencies = ["click>=8.1"] dependencies = ["click>=8.1"]
authors = [ authors = [
{name = "Fedor Lyanguzov"}, {name = "Fedor Lyanguzov"},
] ]
license = {file = "LICENSE"}
readme = "README.md"
description = "Manage WireGuard VPN peers (both server and clients)"
[project.optional-dependencies] [project.optional-dependencies]
test = ["pytest"] test = ["pytest"]
+2 -5
View File
@@ -1,9 +1,6 @@
def main(): def main():
print("run") print("run")
if __name__=="__main__":
if __name__ == "__main__":
main() main()