-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #265 from carbonblack/release-1.3.5
Merge Release 1.3.5 to master
- Loading branch information
Showing
64 changed files
with
4,091 additions
and
548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
repos: | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 4.0.1 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: [flake8-docstrings] | ||
args: ["--docstring-convention", "google"] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.0.1 | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,14 @@ | |
We rely on pull requests to keep this project maintained. By participating in this project, you | ||
agree to abide by the VMware [code of conduct](CODE-OF-CONDUCT.md). | ||
|
||
## Setup | ||
|
||
Fork, then clone the repo: | ||
|
||
git clone [email protected]:carbonblack/carbon-black-cloud-sdk-python.git | ||
|
||
Set up your machine: | ||
It is recommended to use [virtualenv](https://virtualenv.pypa.io/en/latest/) to set up the project. Once you have that | ||
you can use it to generate a virtual environment, activate it and install the package. | ||
|
||
python3 -m virtualenv ./venv | ||
source venv/bin/activate | ||
|
@@ -17,11 +20,21 @@ Make sure the tests pass: | |
|
||
pytest | ||
|
||
Make your change. Add tests for your change. Make the tests pass: | ||
## Developing | ||
|
||
pytest | ||
Install the dev dependencies and after that it is highly recommended installing `pre-commit`. | ||
|
||
pip install -r requirements.txt | ||
pre-commit install | ||
... | ||
|
||
The `pre-commit` will make sure that you have the right code quality before committing your changes. | ||
|
||
Push to your fork and [submit a pull request](https://github.com/carbonblack/carbon-black-cloud-sdk-python/compare/). | ||
Make sure to: | ||
* Write documentation and tests. | ||
* Perform all the other tests. | ||
* Push to your fork and | ||
[submit a pull request](https://github.com/carbonblack/carbon-black-cloud-sdk-python/compare/). | ||
|
||
We try to respond to pull requests as quickly as possible. We may suggest | ||
some changes or improvements or alternatives. | ||
|
@@ -31,3 +44,4 @@ Some things that will increase the chance that your pull request is accepted: | |
* Write tests. | ||
* Follow [PEP-8](https://www.python.org/dev/peps/pep-0008/), [flake8](https://flake8.pycqa.org/en/latest/), and clean code principles. | ||
* Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html). | ||
* Usage of [pre-commit](https://pre-commit.com/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.3.4 | ||
1.3.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM python:3.9-slim-buster | ||
|
||
ENV PYTHONUNBUFFERED 1 | ||
ENV PYTHONDONTWRITEBYTECODE 1 | ||
|
||
RUN apt-get update \ | ||
# dependencies for building Python packages | ||
&& apt-get install -y build-essential \ | ||
&& apt-get install -y texlive \ | ||
&& apt-get install -y texlive-latex-extra \ | ||
&& apt-get install -y dvipng \ | ||
&& apt-get install -y python3-sphinx \ | ||
# Translations dependencies | ||
&& apt-get install -y gettext \ | ||
# cleaning up unused files | ||
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# All imports needed for autodoc. | ||
RUN pip install --no-input Sphinx sphinx-autobuild sphinx-rtd-theme | ||
|
||
COPY ./docs/start /start-docs | ||
RUN sed -i 's/\r$//g' /start-docs | ||
RUN chmod +x /start-docs | ||
|
||
WORKDIR /docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: '3' | ||
|
||
services: | ||
docs: | ||
image: carbon-black-cloud-sdk-python/docs | ||
build: | ||
context: .. | ||
dockerfile: ./docs/Dockerfile | ||
volumes: | ||
- ../../docs:/app:z | ||
ports: | ||
- "7000:7000" | ||
command: /start-docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o nounset | ||
|
||
cd /app | ||
make livehtml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.