githubEdit

Research Template Reference

https://github.com/ezhang7423/research_project

Primary Development Features/Dependencies:

Dive into the specifics of each feature by checking out the complete documentation for each.

Optional Features

Google Drive Remote Filesystem

Option 1 (mounts google drive onto local file system): https://github.com/astrada/google-drive-ocamlfusearrow-up-right

Option 2 (makes gdrive act like a local folder with fsspec api):

https://github.com/fsspec/gdrivefsarrow-up-right

🏗️ Development

  1. Install and initialize poetry and install pre-commit hooks:

  1. Run the codestyle:

Makefile usage

Makefilearrow-up-right contains a lot of functions for faster development.

chevron-right1. Download and remove Poetryhashtag

To download and install Poetry run:

To uninstall

chevron-right2. Install all dependencies and pre-commit hookshashtag

Install requirements:

Pre-commit hooks coulb be installed after git init via

chevron-right3. Codestylehashtag

Automatic formatting uses pyupgrade, isort and black.

Codestyle checks only, without rewriting files:

Note: check-codestyle uses isort, black and darglint library

Update all dev libraries to the latest version using one comand

chevron-right5. Type checkshashtag

Run mypy static type checker

chevron-right6. Tests with coverage badgeshashtag

Run pytest

chevron-right7. All lintershashtag

Of course there is a command to rule run all linters in one:

the same as:

chevron-right8. Dockerhashtag

which is equivalent to:

Remove docker image with

More information about dockerarrow-up-right.

chevron-right9. Cleanuphashtag

Delete pycache files

Remove package build

Delete .DS_STORE files

Remove .mypycache

Or to remove all above run:

Last updated