-
Notifications
You must be signed in to change notification settings - Fork 7
Developer How To
Rob Campbell edited this page Jun 22, 2019
·
10 revisions
This page covers issues a developer might run into when adding features and also guidelines for contributing.
- Lasagna adheres to PEP8 and commits should be passed through Black.
- Class names are camel case.
- Method names and variable names are snake case. You may mix snake and camel case in rare exceptions (e.g. because the snake case name becomes overly long).
- Preference is for commits to go to
development
and only merge commits intomaster
. Exceptions to this are things like modifications to the readme, changelog, or perhaps small bugfixes. - Please avoid creating a branch per feature in this repository.
If you wish to do this, clone the repo, branch, make changes, then merge or pull request into
development
or perhapsmaster
.
Say you want a new sub-menu under "Plugins" called "awesome_plugins" and you want to bundle these with Lasagna:
mkdir lasagna/lasagna/plugins/awesome_plugins
touch lasagna/lasagna/plugins/awesome_plugins/__init__.py
- Add the new directory to
pluginPaths
inlasagna_prefs.yml
- Add your plugin to the new directory. It should have a file name ending in
_plugin.py