Skip to content

Commit

Permalink
Pylance config (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel-Therrien-Beslogic authored Mar 23, 2024
1 parent 3097557 commit 4d7822e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 0 additions & 8 deletions canopeum_backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,6 @@ max-args = 7
# At least same as max-complexity
max-branches = 15

# https://github.com/microsoft/pyright/blob/main/docs/configuration.md#sample-pyprojecttoml-file
[tool.pyright]
pythonVersion = "3.12"
exclude = [".venv/"]
typeCheckingMode = "standard"
# django-specific mypy plugin does a better job getting serializers data type of dict vs list
reportAttributeAccessIssue = "none"

# https://mypy.readthedocs.io/en/stable/config_file.html
[tool.mypy]
show_column_numbers = true
Expand Down
9 changes: 9 additions & 0 deletions pyrightconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Must be set at root for pylance to pickup. Can't be in cannopeum_backend/pyproject.toml. bleh
// https://github.com/microsoft/pyright/blob/main/docs/configuration.md#sample-pyprojecttoml-file
{
"pythonVersion": "3.12",
"include": ["canopeum_backend/"],
"typeCheckingMode" : "standard",
// django-specific mypy plugin does a better job getting serializers data type of dict vs list
"reportAttributeAccessIssue" : "none",
}

0 comments on commit 4d7822e

Please sign in to comment.