From c67c41f4674407719cb59a01da98536f96fa1977 Mon Sep 17 00:00:00 2001 From: H-Shay Date: Tue, 31 Jan 2023 18:36:56 +0000 Subject: deploy: eafdb12dd8db985fbe1ac27ca75d28af8d4e4c5d --- latest/code_style.html | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'latest/code_style.html') diff --git a/latest/code_style.html b/latest/code_style.html index c352b63481..937be65168 100644 --- a/latest/code_style.html +++ b/latest/code_style.html @@ -76,7 +76,7 @@ @@ -158,17 +158,13 @@ errors in code.

  • ruff, which can spot common errors; and
  • mypy, a type checker.
  • -

    Install them with:

    -
    pip install -e ".[lint,mypy]"
    -
    -

    The easiest way to run the lints is to invoke the linter script as follows.

    -
    scripts-dev/lint.sh
    -
    +

    See the contributing guide for instructions +on how to install the above tools and run the linters.

    It's worth noting that modern IDEs and text editors can run these tools automatically on save. It may be worth looking into whether this functionality is supported in your editor for a more convenient development workflow. It is not, however, recommended to run mypy -on save as they take a while and can be very resource intensive.

    +on save as it takes a while and can be very resource intensive.

    General rules