Changeset View
Changeset View
Standalone View
Standalone View
CONTRIBUTING.md
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | |||||
During submission of patches, arcanist will automatically run `arc lint` to | During submission of patches, arcanist will automatically run `arc lint` to | ||||
enforce Bitcoin ABC code formatting standards, and often suggests changes. | enforce Bitcoin ABC code formatting standards, and often suggests changes. | ||||
If code formatting tools do not install automatically on your system, you | If code formatting tools do not install automatically on your system, you | ||||
will have to install the following: | will have to install the following: | ||||
Install all the code formatting tools on Debian Bullseye (11) or Ubuntu 20.04: | Install all the code formatting tools on Debian Bullseye (11) or Ubuntu 20.04: | ||||
``` | ``` | ||||
sudo apt-get install python3-autopep8 python3-pip php-codesniffer shellcheck yamllint | sudo apt-get install python3-pip php-codesniffer shellcheck yamllint | ||||
pip3 install "black>=23.0" "isort>=5.6.4" "mypy>=0.910" "flynt>=0.78" "flake8>=5" flake8-comprehensions flake8-builtins | pip3 install "black>=23.0" "isort>=5.6.4" "mypy>=0.910" "flynt>=0.78" "flake8>=5" flake8-comprehensions flake8-builtins | ||||
echo "export PATH=\"`python3 -m site --user-base`/bin:\$PATH\"" >> ~/.bashrc | echo "export PATH=\"`python3 -m site --user-base`/bin:\$PATH\"" >> ~/.bashrc | ||||
source ~/.bashrc | source ~/.bashrc | ||||
``` | ``` | ||||
If not available in the distribution, `clang-format-12` and `clang-tidy-12` can be | If not available in the distribution, `clang-format-12` and `clang-tidy-12` can be | ||||
installed from <https://releases.llvm.org/download.html> or <https://apt.llvm.org>. | installed from <https://releases.llvm.org/download.html> or <https://apt.llvm.org>. | ||||
▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines |