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 opencode@microsoft.com with any additional questions or comments.
To report a bug or feature request, open up an issue. Please provide as much information as possible. For a bug, describe your environment, provide steps to reproduce, expected behavior/actual behavior in the description, etc.
Everyone is welcome to contribute code to this repository via GitHub pull requests (PRs).
To create a new PR, fork the project in GitHub and clone the upstream repo:
$ git clone https://github.com/microsoft/ApplicationInsights-Python.git
Add your fork as an origin:
$ git remote add fork https://github.com/YOUR_GITHUB_USERNAME/microsoft/ApplicationInsights-python.git
Run tests:
# make sure you have all supported versions of Python installed
$ pip install tox # only first time.
$ tox # execute in the root of the repository
Check out a new branch, make modifications and push the branch to your fork:
$ git checkout -b feature
# edit files
$ git commit
$ git push fork feature
Open up a pull request with your changes.
This project uses tox to automate
some aspects of development, including testing against multiple Python versions.
To install tox
, run:
$ pip install tox
We will use the Azure Monitor distro project as an example.
You can run tox
with the following arguments:
tox
to run all existing tox commands, including unit tests for all packages under multiple Python versionstox -e distro
to run the unit teststox -e py310-distro
to e.g. run the API unit tests under a specific Python versiontox -e spellcheck
to run a spellcheck on all the codetox -e lint
to run lint checks on all code
black
and isort
are executed when tox -e lint
is run. The reported errors can be tedious to fix manually.
An easier way to do so is:
- Run
.tox/lint/bin/black .
- Run
.tox/lint/bin/isort .
See
tox.ini
for more detail on available tox commands.
TODO
See the LICENSE file for our project's licensing. We will ask you to confirm the licensing of your contribution.
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.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., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories 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 opencode@microsoft.com with any additional questions or comments.