Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1.3 KB

contribution.md

File metadata and controls

51 lines (38 loc) · 1.3 KB

Contribution

git clone https://github.com/forensic-security/cybereason
cd cybereason
python3 -m venv .venv
. .venv/bin/activate
pip install .[dev]  # maybe [dev,socks]

To test your contributions, please follow these steps from the project root dir:

# linting
ruff check .

# static anlysis
mypy src/cybereason

# testing
export CYBEREASON_TENANT=<tenant>
export CYBEREASON_USERNAME=<username>
export CYBEREASON_PASSWORD=<password>
# export also CYBEREASON_PROXY if needed
pytest

Please note that the purpose of most of the tests is to investigate and document the Cybereason's API and data model, so testing errors are more likely to require an update of either the models or the endpoints than a code change.

Versioning

This library follows Semantic Versioning. Please, follow this specification and tag the commit appropriately.

git tag -a vX.Y.Z -m "vX.Y.Z"
git push --follow-tags

Caveats