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
config_mgmt_server-1.0.11.tar.gz
(14.9 kB
view hashes)
Built Distribution
Close
Hashes for config_mgmt_server-1.0.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a227539b31decabc799b3fc0f95a24a75440772253b29d56346d8c67428084c3 |
|
MD5 | 8d4669347f378c337199f9e12363d900 |
|
BLAKE2b-256 | ed46c4ec688115baf39823906f463087a2498749a26193e5545f3e5c29f49400 |
Close
Hashes for config_mgmt_server-1.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f53989eabb27a85c020192ca5c3b00c3d0f5eb22392fd4f77a5041640e097f88 |
|
MD5 | 1ffa6b19c3320f49325de49974876921 |
|
BLAKE2b-256 | 3d79e1cac121cd5f00779fb9a7cbbc19ec4fe0d0e3f1e0978cb49052cb72288d |