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.15.tar.gz
(10.4 kB
view hashes)
Built Distribution
Close
Hashes for config_mgmt_server-1.0.15.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ddc6a1e2d29760bcb3e2509c107f3406b0ff0a9a4813c2f7d01fb336206a223 |
|
MD5 | d2726865ff86e3cf381db4488cd330b5 |
|
BLAKE2b-256 | 824929739beb57d30c0bb25fff6de7ddd44aea58d0583a4bc419a1986aff4348 |
Close
Hashes for config_mgmt_server-1.0.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b53c8f9b6b466f429e6546c06d411c99875edd1addafbf23de71fc28928b44da |
|
MD5 | 434f80d5c63e62b0691712f344cf6cc4 |
|
BLAKE2b-256 | 3863f00215623024592e0911ec3f48776163524f6623c8a24b620b028a282ada |