This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
Help us keep this project open and inclusive. Please read and follow our Code of Conduct.
If you find a bug in the source code or a mistake in the documentation, you can help us by submitting an issue to the GitHub Repository. Even better, you can submit a Pull Request with a fix.
You can request a new feature by submitting an issue to the GitHub Repository. If you would like to implement a new feature, please submit an issue with a proposal for your work first, to be sure that we can use it.
- Small Features can be crafted and directly submitted as a Pull Request.
Poetry is a package manager for Python that allows developers to manage dependencies, create virtual environments, and package their projects for distribution, all using a single command-line tool.
Poetry is setup for you in the devcontainer, but should you need to set this up manually you can
sh ./.devcontainer/postCreate.sh
The following manual steps can also be followed to setup poetry:
- Poetry can be installed using
pip install poetry
. - Using
poetry init
poetry creates apyproject.toml
file with all the main dependencies required to run the application. - Executing
poetry install
from the root folder which has thepyproject.toml
file, installs all the dependencies and creates a virtual environment which is used to run the application.poetry install
also generates apoetry.lock
file which locks the dependency versions so that any user who installs the application get the same package version. - Executing
pip install .
from the root folder only installs the main dependencies. - Dependencies for different environments (dev, test etc.) can be managed by creating groups in the
pyproject.toml
file. - Installing dependencies for different groups can be done using
poetry install --with <group_name>
-
Adding new package to pyproject.toml :
To add a new package execute the below command:
poetry add <package-name>
To add a package to specific group:
poetry add <package-name> --group <group-name>
poetry add <package-name>
updates thepoetry.lock
file.Note: In case the pyproject.toml file is manually updated, the following command should be executed to update the
poetry.lock
file.poetry lock --no-update
--no-update
Locks the packages without updating the locked versions.
Before you submit an issue, search the archive, maybe your question was already answered.
If your issue appears to be a bug, and hasn't been reported, open a new issue. Help us to maximize the effort we can spend fixing issues and adding new features, by not reporting duplicate issues. Providing the following information will increase the chances of your issue being dealt with quickly:
- Overview of the Issue - if an error is being thrown a non-minified stack trace helps
- Version - what version is affected (e.g. 0.1.2)
- Motivation for or Use Case - explain what are you trying to do and why the current behavior is a bug for you
- Browsers and Operating System - is this a problem with all browsers?
- Reproduce the Error - provide a live example or a unambiguous set of steps
- Related Issues - has a similar issue been reported before?
- Suggest a Fix - if you can't fix the bug yourself, perhaps you can point to what might be causing the problem (line of code or commit)
You can file new issues by providing the above information at the corresponding repository's issues link: https://github.com/[organization-name]/[repository-name]/issues/new].
Before you submit your Pull Request (PR) consider the following guidelines:
-
Search the repository (https://github.com/[organization-name]/[repository-name]/pulls) for an open or closed PR that relates to your submission. You don't want to duplicate effort.
-
Make your changes in a new git fork:
-
Commit your changes using a descriptive commit message
-
If you are using the devcontainer, committing code will run black and flake8 to lint python code. You can run
black .
orflake8 .
at anytime. -
Push your fork to GitHub:
-
In GitHub, create a pull request. Note: We require PRs to be named following the Conventional Commits specification. This is where PRs are prefixed according to their type. The available types are:
- feat: A new feature
- fix: A bug fix
- docs: Documentation only changes
- style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
- refactor: A code change that neither fixes a bug nor adds a feature
- perf: A code change that improves performance
- test: Adding missing tests or correcting existing tests
- build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
- ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
- chore: Other changes that don't modify src or test files
- revert: Reverts a previous commit
-
If we suggest changes then:
-
Make the required updates.
-
Rebase your fork and force push to your GitHub repository (this will update your Pull Request):
git rebase master -i git push -f
-
That's it! Thank you for your contribution!