Skip to content

megacell/boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

boilerplate

This serves both as boilerplate for starting new research code projects as well as a examples of good coding practices.

Usage

To try out the boilerplate, run

python boilerplate/Giraffe.py

But actually the point is to read through src/Giraffe.py and tests/fast/test_giraffe.py.

Testing

To run the tests:

python -m unittest discover

To run only the fast (eg. unit) tests:

python -m unittest discover tests/fast

To run only the slow (eg. integration) tests:

python -m unittest discover tests/slow

Development

  • For this project, and any derived from it, please run the following command from the project root directory (for Unix-based systems):

    ln -s ../../pre-commit.sh .git/hooks/pre-commit
    

    In Windows, the easiest thing seems to be to rename the file as pre-commit and copy it directly to .git/hooks/pre-commit. You may need to enable viewing of file extensions in the File Explorer.

  • Please add any additional good practices to this repository.

  • Write unit tests as you go. Document as you go.

  • Run all unit tests before you push any code.

References

About

Boilerplate for starting new research code projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •