-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: structure, add custom admonition
- Loading branch information
Showing
5 changed files
with
44 additions
and
17 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,8 @@ | ||
# Getting started | ||
|
||
**Welcome!** We are glad to have you visit our developer guide! If you find any bugs or have suggestions for improvements, please open an [issue](https://github.com/bakdata/kpops/issues/new) and optionally a [pull request (PR)](https://github.com/bakdata/kpops/compare). In the case of a PR, we would appreciate it if you preface it with an issue outlining your goal and means of achieving it. | ||
|
||
Find more about our code-style or insights into KPOps' code base here in our developer guide. | ||
|
||
!!! wip "WIP" | ||
The developer guide is still under construction. If you have a question left unanswered here, feel free to ask it by opening an issue. |
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,10 @@ | ||
# Markdown | ||
|
||
To ensure a consistent markdown style, we use [dprint](https://dprint.dev) to check and reformat. | ||
|
||
```shell | ||
dprint fmt | ||
``` | ||
|
||
Use the [official documentation](https://dprint.dev/setup/) to setup dprint. | ||
The configuration can be found [here](https://github.com/bakdata/kpops/blob/main/dprint.json). |
19 changes: 3 additions & 16 deletions
19
docs/docs/developer/style.md → docs/docs/developer/style/python.md
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,27 +1,14 @@ | ||
# Style | ||
|
||
## Python | ||
# Python | ||
|
||
To ensure a consistent Python code style, we use [Ruff](https://docs.astral.sh/ruff/) for both linting and formatting. | ||
|
||
### Configuration | ||
## Configuration | ||
|
||
Our configuration can be found in [KPOps](https://github.com/bakdata/kpops)' top-level `pyproject.toml`. | ||
|
||
### Editor integration | ||
## Editor integration | ||
|
||
Below are listed existing Ruff plugins/extensions for some of the most popular python IDEs. If you cannot find your Editor of choices or you want something more custom, [`ruff-lsp`](https://github.com/astral-sh/ruff-lsp) enables Ruff to be used in any editor that supports the LSP | ||
|
||
- [VSCode](https://marketplace.visualstudio.com/items?itemName=charliermarsh.ruff) | ||
- [PyCharm](https://plugins.jetbrains.com/plugin/20574-ruff) | ||
|
||
## Markdown | ||
|
||
To ensure a consistent markdown style, we use [dprint](https://dprint.dev) to check and reformat. | ||
|
||
```shell | ||
dprint fmt | ||
``` | ||
|
||
Use the [official documentation](https://dprint.dev/setup/) to set up dprint. | ||
The configuration can be found [here](https://github.com/bakdata/kpops/blob/main/dprint.json). |
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