Suncoast Systems Core Router Config Mgmt Server
Project description
VSCode Python Project Template
Template for my python (version 3) projects with vscode
Commands
- Init space (with bash) :
source _initial_setup.sh
- Create virtualenv virtualenv :
virtualenv -p python3 .venv
- Load/Source virtuelenv :
source .venv/bin/activate
- Install requirements :
pip install -r requirements.txt
- Install test requirements :
pip install -r tests/requirements.txt
- Launch unitary tests :
python3 -m pytest tests -v
- Launch coverage tests :
python3 -m pytest --cov-report xml:cov.xml --cov my_module tests -v
Tools choices
-
Format python code with autopep8. Others here : https://code.visualstudio.com/docs/python/editing#_formatting
-
Static analysis with pylint. Others here : https://code.visualstudio.com/docs/python/linting
-
Unitary tests with pytest. Others here : https://code.visualstudio.com/docs/python/unit-testing
-
Available options for python with vscode available here : <https://code.visualstudio.com/docs/python/settings-reference>
Extensions
Usefull extensions :
- Python (https://marketplace.visualstudio.com/items?itemName=ms-python.python)
- Coverage Gutters (https://marketplace.visualstudio.com/items?itemName=ryanluker.vscode-coverage-gutters)
- Better Comments (https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments)
- indent-rainbow (https://marketplace.visualstudio.com/items?itemName=oderwat.indent-rainbow)
- Trailing Spaces (https://marketplace.visualstudio.com/items?itemName=shardulm94.trailing-spaces)
- Rainbow Brackets (https://marketplace.visualstudio.com/items?itemName=2gua.rainbow-brackets)
- Git Lens (https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens)
- EditorConfig (https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig)
- Git Project Manager (https://marketplace.visualstudio.com/items?itemName=felipecaputo.git-project-manager)
Tasks
- Unitary tests with code coverage
Use it
- Clone this repo as a new vscode workspace
- Create virtualenv and install requirements (see Commands)
- Rename folder my_module with your module name
- In .vscode/tasks.json, replace my_module by your module name
- Fix module import in main.py and ./tests/test_my_module.yy if needed
- Try everything by:
- Launching unitary tests
- Launching task
- Launching configurations
- Debugging with a breakpoint
Sources
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file config_mgmt_server-1.0.18.tar.gz
.
File metadata
- Download URL: config_mgmt_server-1.0.18.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 797873e822907d1d49560f9d73787249bb84385e3941ce8a0452ad0d7fa0577b |
|
MD5 | 623733908822eff5d20a5e8c81e51c64 |
|
BLAKE2b-256 | d8e6e6c6fea85a6769e4d3fc57c29792b85cf2ed1789162be4419a0b21df65d8 |
File details
Details for the file config_mgmt_server-1.0.18-py3-none-any.whl
.
File metadata
- Download URL: config_mgmt_server-1.0.18-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 422bff96f4363f28b29704f3aae68dbf3387e909dbce03f3828567c2031cdaf3 |
|
MD5 | 6de59de87dbbe19a9df0e7f4d02a66fc |
|
BLAKE2b-256 | 37fdac131ba9212d63e055a9ff4980a491c4127e22a78017cd4f5abc417aa5fc |