Skip to content

Template a Python project with multiple modules and testing and linting

License

Notifications You must be signed in to change notification settings

Arash-Afshar/python-project-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

module_name_str

The code is a modified version of https://github.com/MartinHeinz/python-project-blueprint . Unlike the original template, this one is supports multiple modules in the src directory. Moreover, this template use virtualenv instead of docker for dev and testing.

Configure the app name

The "module name str" (with hyphens) can be replaced with the name of your own app by running the following script.

./configure.sh my_new_module_name

Install and run

Create a virtual environment and activate it.

virtualenv venv
source venv/bin/activate

Install the build dependencies.

pip install -r requirements.txt

Install the dev dependencies.

pip install pylint flake8 bandit

Run a module using the following command.

make run module=my_new_module_name

Run the tests with,

make test

Run the lints with,

make lint

About

Template a Python project with multiple modules and testing and linting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published