Tools

Python Config

File: /home/atari-monk/atari-monk/project/tools/pyrightconfig.json

{
  "typeCheckingMode": "strict",
  "reportMissingImports": true,
  "reportMissingTypeStubs": true,
  "reportUnknownParameterType": true,
  "reportUnknownVariableType": true,
  "reportUntypedFunctionDecorator": true,
  "reportUntypedClassDecorator": true,
  "reportUntypedBaseClass": true,
  "reportUnknownMemberType": true,
  "reportUnknownArgumentType": true,
  "reportGeneralTypeIssues": true,
  "reportOptionalMemberAccess": true,
  "reportOptionalSubscript": true,
  "reportOptionalCall": true
}

File: /home/atari-monk/atari-monk/project/tools/pyproject.toml

[tool.black]
line-length = 88
target-version = ["py311"]

[tool.ruff]
line-length = 88
target-version = "py311"

[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP"]
ignore = []

Install formatting tool (Ruff)

pip install ruff
pip install black

VSCode setup (Python type checking)

Install extension:

Then ensure Pyright strict mode is active via the pyrightconfig.json above.

Format code usage

Ruff:

ruff check .
ruff format .

Black:

black .

Tasks