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
Close
Hashes for config_mgmt_server-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c4ed35b804dcc825f2e75dd446e8569c60b7ef580b5c672fe9b8a42fb6e0792 |
|
MD5 | 1e2d84b4c96e043fabed6888555aadd5 |
|
BLAKE2b-256 | 4356c2b07dde9ba984f3fb7c8780e89e8c127ae93544887b5c1db7302010cece |