You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/10.supported-networks/0.overview.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
---
2
-
title: "→ Overview"
2
+
title: "Overview"
3
3
description: "DipDup can index any EVM-compatible network as long as there's enough historical data. This page contains a list of supported networks and instructions on how to configure your indexer for them."
Copy file name to clipboardExpand all lines: docs/14.contributing.md
+43-31Lines changed: 43 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,48 +10,66 @@ DipDup is a free and open-source software licensed under the [MIT License](#mit-
10
10
11
11
## Contributor Guide
12
12
13
+
Thanks for considering contributing to DipDup! We're happy to have you here. This document is meant to help you get started with the project. If you have any questions, feel free to open an issue on [GitHub](https://github.com/dipdup-io/dipdup/issues/new/choose) or join our [Discord server](https://discord.gg/aG8XKuwsQd). Have fun!
14
+
15
+
### Workflow
16
+
17
+
1. Fork the repository, clone it, and `git checkout next`.
18
+
2. Create a new branch with `git checkout -b <your-branch-name>`.
19
+
3. Make your changes. Run `make format lint` to perform basic code checks.
20
+
4. When finished, push your branch with `git push origin --set-upstream <your-branch-name>`.
21
+
5. Create a pull request to merge `<your-branch-name>` into `next`. Maintainers will review your pull request and may make comments, ask questions, or request changes. When all feedback has been addressed the pull request will be approved, and after all checks have passed it will be merged by a maintainer.
22
+
23
+
### Development environment
24
+
25
+
You'll need Python 3.12 and PDM package manager to run DipDup locally. To set up the development environment, run `pdm venv create python3.12 && pdm sync && $(pdm venv activate)`. To see the list of development commands, run `make help`.
26
+
27
+
## Maintainer Guide
28
+
29
+
::banner{type="warning"}
30
+
This section is intended for DipDup maintainers only! If you're a regular contributor, you don't need to read it (but welcome to do so).
31
+
::
32
+
13
33
The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC 2119](https://www.ietf.org/rfc/rfc2119.txt).
14
34
15
35
### General
16
36
17
37
- All code in this repository MUST be licensed under the [MIT License](#mit-license).
18
-
- Python code in this repository MUST run on Python 3.11. Using modern language features is encouraged.
19
-
- Python code in this repository MUST run in Linux, macOS, Docker, and environments on `amd64` and `arm64` architectures.
20
-
- We use the PDM package manager to set up the development environment. You SHOULD install it and run `pdm run -l` to see available shortcuts.
21
-
- Have fun!
38
+
- Python code in this repository MUST run on Python 3.12. Using modern language features is encouraged.
39
+
- Python code in this repository MUST run in Linux, macOS, and Docker environments, and on `amd64`, `arm64` architectures. CI will help you with that.
22
40
23
41
### Git workflow
24
42
25
-
- Branch names MUST follow `prefix/short-description` format. Prefixes currently in use: `feat` for features, `fix` for bugfixes, `docs` for documentation, `exp` for experiments, `ci` for GHA and Docker stuff, `aux` for everything else.
43
+
- Default branches are `next` for the latest release and `current` for the previous one. `next` is the default branch for pull requests.
44
+
- Branch names SHOULD follow the `prefix/short-description` format. Prefixes currently in use: `feat` for features, `fix` for bugfixes, `docs` for documentation, `exp` for experiments, `ref` for refactoring, `ci` for GitHub Actions, scripts and Docker stuff, `aux` for everything else.
26
45
- Commits in pull requests MUST be squashed when merging to `next`.
27
46
- Issues and pull requests MUST have a descriptive title; they SHOULD be linked to each other, appropriately labeled, and assigned to maintainers while in progress.
28
47
29
48
### Codestyle
30
49
31
-
We use several tools to enforce codestyle and code quality: `black` for autoformatting, `ruff` for linting, and `mypy` for typechecking. All checks MUST pass before merging the code to the default branch. Everything not enforced by these tools is up to the developer. But here are some recommendations:
50
+
We use several tools to enforce the code style and decent code quality: `black` for autoformatting, `ruff` for linting, and `mypy` for type checking. All checks MUST pass before the code is merged to the default branch. Anything not enforced by these tools is up to the developer. But here are some recommendations:
32
51
33
-
- Consistency is the key. If you see a pattern in the codebase, follow it.
34
-
- Use `NOTE`, `TODO`, and `FIXME` prefixes for meaningful comments. They help a lot to navigate the codebase.
35
-
- Lazy imports are important to keep startup time low for tiny commands. We also do it for project imports, so not a big deal.
36
-
- Some methods and attributes are made private to avoid polluting the public API. Feel free to access them from the outside if you know what you are doing.
37
-
- Finally, about exact language features. f-string formatting is preferred over other syntax. Be careful with the walrus operator. Don't forget else in conditional expressions. Listen to your mom. We have no consensus about the match-case yet.
52
+
- Consistency is the key. If you see a pattern in the codebase, follow it. Use meaningful names for variables, and avoid abbreviations.
53
+
- Use `NOTE/TODO/FIXME` prefixes for meaningful comments, Avoid inline comments. It helps a lot in navigating the codebase.
54
+
- Lazy imports are important to keep startup time low for tiny commands. We also do this for project imports.
55
+
- Some methods and attributes are made private to avoid cluttering the public API. Feel free to access them from the outside if you know what you are doing.
56
+
- Finally, about exact language features. f-string formatting is preferred over other syntax. Be careful with the walrus operator. Don't forget `else` in conditional expressions. Listen to your mom. We do not yet have a consensus on match-case.
38
57
39
58
### Changelog
40
59
41
-
- All changes that affect user (developer) experience MUST be documented in the CHANGELOG.md file.
42
-
- Changes that significantly affect DipDup maintainers' experience MAY be documented in the CHANGELOG.md file.
43
-
- The changelog MUST conform to the "Keep a Changelog" specification (CI will break otherwise). Group order we use: Added, Fixed, Changed, Deprecated, Removed, Performance, Security, Other.
44
-
- Lines describing changes MUST be sorted and begin with the component name (usually Python module name).
60
+
- All changes that affect the user (developer) experience MUST be documented in the CHANGELOG.md file.
61
+
- The changelog MUST follow the "Keep a Changelog" specification (CI will break otherwise). Group order we use: Added, Fixed, Changed, Deprecated, Removed, Performance, Security, Other.
62
+
- Lines describing changes MUST be sorted and start with the component name (usually the Python module name).
45
63
46
64
### Documentation
47
65
48
-
-A page in "Release notes" section MUST accompany all major releases. Minor releases SHOULD be documented as well. Avoid includes in Release notes pages as they are not intended to change over time.
49
-
50
-
## Maintainer Guide
66
+
-We have a pretty complex process of building and deploying docs. It starts with Markdown files in the `docs` directory. Then `scripts/docs.py` script generates several dynamic pages, API references, processes custom Cookiecutter-style macros, and so on. The resulting Markdown is pushed to the private frontend repository via the `docs.yml` GitHub Action. `docs.py` script code should answer most of your questions.
67
+
- All public APIs MUST be documented using docstrings. We use the reStructuredText (reST) syntax.
68
+
- A page in the "Release notes" section MUST accompany all major and minor releases. Avoid using `#include` macro in Release notes as they should not change after the publication.
51
69
52
70
### Dependencies
53
71
54
-
- All dependencies MUST be declared in `pyproject.toml` file and pinned to non-breaking versions (e.g. `~1.2`).
72
+
- All dependencies MUST be declared in `pyproject.toml` file and pinned to non-breaking versions. We are more of an application than a library, so no asterisks, please.
55
73
56
74
### Security
57
75
@@ -69,38 +87,32 @@ We use several tools to enforce codestyle and code quality: `black` for autoform
69
87
- Docker images for stable releases MUST be published on Docker Hub and GitHub Container Registry.
70
88
- Maintainers MAY publish arbitrary images on GHCR and remove them when not needed.
71
89
72
-
### Installer
73
-
74
-
- Installer module MUST depend on Python stdlib only.
75
-
76
90
### Scaffolding
77
91
78
92
- Project templates SHOULD cover all index types available in DipDup.
79
93
- They also MAY contain additional features and integrations.
80
94
81
95
### Demo projects
82
96
83
-
- Demos are stored in `src` directory. They MUST be generated automatically from project templates using replay files.
97
+
- Demos are stored in the `src` directory. They MUST be generated automatically from project templates using replay files.
84
98
- Maintainers SHOULD run `pdm demos` command regularly to ensure that demo projects are up to date.
85
99
86
100
### Releases
87
101
88
102
- Release versions MUST conform to [Semantic Versioning](https://semver.org/). Releases that introduce breaking changes MUST be major ones.
89
-
- Only the latest major version is supported in general. Important fixes SHOULD be backported to the previous major release (currently, 6.5)
103
+
- The latest major version is the only one supported in general. Important fixes SHOULD be backported to the previous major release.
104
+
105
+
### Release process
90
106
91
107
Releasing a new version currently requires some manual actions:
92
108
93
109
1. Ensure that all GH issues and PRs are closed and linked to the milestone.
94
-
2. Checkout to `aux/X.Y.Z` branch from `next` (or `master` for 6.5). Update DipDup version in `pyproject.toml`.
110
+
2. Checkout to `aux/X.Y.Z` branch from `next` (or `current` for backports). Update DipDup version in `pyproject.toml`.
95
111
3. Run `make before_release` to lock dependencies, dump `requirements.txt` files, generate demo projects etc.
96
112
4. Commit and push all changes with msg like `Bump version X.Y.Z`. Open a PR, and link it to the milestone.
97
113
5. Now you may want to switch Docker images of demos we host to `aux-X.Y.Z` tag as a smoke test.
98
114
6. Merge the PR, then `git tag X.Y.Z && git push origin X.Y.Z`. Wait for `release.yml` and `docs.yml` pipelines to finish.
99
-
100
-
### 6.5 branch
101
-
102
-
- DipDup 6.5 is supported until March 2024. Maintainers MUST backport bugfixes from the main branch until then. All Tezos and TzKT-related code was synced with `next`, so it should be a relatively easy task.
103
-
- 6.5 docs and installer are hosted on GH Pages at `docs.dipdup.io`.
115
+
7. Don't forget an announcement on Twitter and Discord.
<li><p><strong>kind</strong> (<em>Literal</em><em>[</em><em>'tezos'</em><em>] </em><em>| </em><em>~typing.Literal</em><em>[</em><em>'evm'</em><em>]</em>) – Either ‘tezos’ or ‘evm’ allowed</p></li>
78
+
<li><p><strong>kind</strong> (<em>Literal</em><em>[</em><em>'tezos'</em><em>, </em><em>'evm'</em><em>]</em>) – Either ‘tezos’ or ‘evm’ allowed</p></li>
0 commit comments