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
{{ message }}
This repository was archived by the owner on Jan 9, 2024. It is now read-only.
For bug fixes you should provide some information about how to reproduce the problem so it can be verified if the new code solves the bug.
5
+
6
+
All CI tests must pass (Travis-CI)
7
+
8
+
Follow the code quality standards described in this file.
9
+
10
+
You are responsible for ensuring the code is mergable and fix any issues that can occur if other code was merged before your code.
11
+
12
+
Allways ensure docs is up to date based on your changes. If docs is missing and you think it should exists you are responsible to write it.
13
+
14
+
For all PR you should do/include the following
15
+
- A line about the change in the `CHANGES` file Add it in the section `Next release`, create it if needed.
16
+
- If you change something already implemented, for example add/remove argument you should add a line in `docs/Upgrading.md` describing how to migrate existing code from the old to the new code. Add it in the section `Next release`, create it if needed.
17
+
- Add yourself to `docs/Authors` file (This is optional if you want)
18
+
19
+
20
+
21
+
# Code standard
22
+
23
+
In general, you should follow the established pep8 coding standard, but with the following exceptions/changes. https://www.python.org/dev/peps/pep-0008/
24
+
25
+
- The default max line length (80) should not be followed religiously. Instead try to not exceed ~140 characters.
26
+
Use the `flake8` tool to ensure you have good code quality.
27
+
- Try to document as much as possible in the method docstring and avoid doc inside the code. Code should describe itself as much as possible.
28
+
- Follow the `KISS` rule and `Make it work first, optimize later`
29
+
- When indenting, try to indent with json style. For example:
I (Johan/Grokzen) have been allowed (by andymccurdy) explicitly to use all test code that already exists inside `redis-py` lib. If possible you should reuse code that exists in there.
55
+
56
+
All code should aim to have 100% test coverage. This is just a target and not a requirements.
57
+
58
+
All new features must implement tests to show that it works as intended.
59
+
60
+
All implemented tests must pass on all supported python versions. List of supported versions can be found in the `README.md`.
61
+
62
+
All tests should be assumed to work against the test environment that is implemented when running in `travis-ci`. Currently that means 6 nodes in the cluster, 3 masters, 3 slaves, using port `7000-7005` and the node on port `7000` must be accessible on `127.0.0.1`
0 commit comments