diff --git a/02-‐-Contributions.md b/02-‐-Contributions.md index ad8bdcf..54e7efd 100644 --- a/02-‐-Contributions.md +++ b/02-‐-Contributions.md @@ -12,7 +12,7 @@ In any case, before submitting a PR, please run test locally to validate your PR Install required packages, e.g. on Fedora Linux -``` +```bash yum install python3-flake8 python3-isort python3-mypy python3-pytest python3-pytest-isort python3-typeguard ``` @@ -20,7 +20,7 @@ yum install python3-flake8 python3-isort python3-mypy python3-pytest python3-pyt #### Run "flake8" -``` +```bash flake8 ... ``` @@ -28,7 +28,7 @@ No error should be reported! #### Run "isort" -``` +```bash isort --check --diff . ... ``` @@ -36,7 +36,7 @@ No error should be reported! #### Run "mypy" -``` +```bash python -c 'import importlib.util, subprocess, sys; importlib.util.find_spec("mypy") and sys.exit(subprocess.run(["mypy", "."]).returncode)' ... ``` @@ -44,7 +44,7 @@ No error should be reported! #### Run "pytest" -``` +```bash python3 setup.py build || exit 1 python3 setup.py install --root dist || exit 1 pytest