Skip to content

Commit

Permalink
Update linter.md with links and instructions for Black and mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipMay committed Jan 2, 2024
1 parent e93bfcc commit 2e64e0e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions source/python/linter.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,11 @@

## Black

- see https://black.readthedocs.io/
- ignore formatting in one line: `# fmt: skip` - https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#code-style
- see <https://black.readthedocs.io/>
- ignore formatting in one line: `# fmt: skip` - <https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#code-style>

## mypy

- see <https://mypy.readthedocs.io/en/stable/>
- ignore all typing in one line: `# type: ignore`
- ignore specific error: `# type: ignore[error-code]`

0 comments on commit 2e64e0e

Please sign in to comment.