-
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
1,709 additions
and
1,687 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
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
This file was deleted.
Oops, something went wrong.
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,73 @@ | ||
--- | ||
hide: | ||
- navigation | ||
--- | ||
|
||
# Contributing | ||
|
||
Firstly, thank you all for taking the time to contribute. | ||
|
||
The following section describes how you can contribute to the openapi-core project on GitHub. | ||
|
||
## Reporting bugs | ||
|
||
### Before you report | ||
|
||
- Check whether your issue does not already exist in the [Issue tracker](https://github.com/python-openapi/openapi-core/issues). | ||
- Make sure it is not a support request or question better suited for [Discussion board](https://github.com/python-openapi/openapi-core/discussions). | ||
|
||
### How to submit a report | ||
|
||
- Include clear title. | ||
- Describe your runtime environment with exact versions you use. | ||
- Describe the exact steps which reproduce the problem, including minimal code snippets. | ||
- Describe the behavior you observed after following the steps, pasting console outputs. | ||
- Describe expected behavior to see and why, including links to documentations. | ||
|
||
## Code contribution | ||
|
||
### Prerequisites | ||
|
||
Install [Poetry](https://python-poetry.org) by following the [official installation instructions](https://python-poetry.org/docs/#installation). Optionally (but recommended), configure Poetry to create a virtual environment in a folder named `.venv` within the root directory of the project: | ||
|
||
```console | ||
poetry config virtualenvs.in-project true | ||
``` | ||
|
||
### Setup | ||
|
||
To create a development environment and install the runtime and development dependencies, run: | ||
|
||
```console | ||
poetry install | ||
``` | ||
|
||
Then enter the virtual environment created by Poetry: | ||
|
||
```console | ||
poetry shell | ||
``` | ||
|
||
### Static checks | ||
|
||
The project uses static checks using fantastic [pre-commit](https://pre-commit.com/). Every change is checked on CI and if it does not pass the tests it cannot be accepted. If you want to check locally then run following command to install pre-commit. | ||
|
||
To turn on pre-commit checks for commit operations in git, enter: | ||
|
||
```console | ||
pre-commit install | ||
``` | ||
|
||
To run all checks on your staged files, enter: | ||
|
||
```console | ||
pre-commit run | ||
``` | ||
|
||
To run all checks on all files, enter: | ||
|
||
```console | ||
pre-commit run --all-files | ||
``` | ||
|
||
Pre-commit check results are also attached to your PR through integration with Github Action. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.