pyproject.toml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. [tool.ruff]
  2. exclude = [
  3. ".git",
  4. "__pycache__",
  5. "setup.py",
  6. "build",
  7. "dist",
  8. "releases",
  9. ".venv",
  10. ".mypy_cache",
  11. ".pytest_cache",
  12. ".vscode",
  13. ".github",
  14. ]
  15. line-length = 120
  16. indent-width = 4
  17. [tool.ruff.lint]
  18. select = [
  19. "E", # pycodestyle errors
  20. "F", # pyflakes errors
  21. "W", # pycodestyle warnings
  22. "C", # mccabe complexity checker
  23. "B", # bugbear best practices checker
  24. "T", # mypy type errors
  25. "B", # flake8-bugbear best practices checker
  26. "I001", # isort import order
  27. ]
  28. ignore = []
  29. # Allow fix for all enabled rules (when `--fix`) is provided.
  30. fixable = ["ALL"]
  31. unfixable = []
  32. [tool.ruff.lint.per-file-ignores]
  33. "__init__.py" = ["F401", "F403"] # unused import
  34. "_init.py" = ["F401", "F403"] # unused import
  35. "taipy/config/stubs/pyi_header.py" = ["F401", "F403"] # unused import
  36. "taipy/templates/*" = ["F401", "F403", "T201"] # unused import, `print` found
  37. "taipy/gui/utils/types.py" = ["B024"] # abstract base class with no abstract methods
  38. [tool.ruff.lint.mccabe]
  39. max-complexity = 18
  40. [tool.ruff.lint.pydocstyle]
  41. convention = "google"
  42. [tool.mypy]
  43. ignore_missing_imports = true
  44. implicit_optional = true
  45. namespace_packages = false
  46. exclude = "(taipy/templates/|generate_pyi.py|tools)"
  47. follow_imports = "skip"
  48. [tool.pyright]
  49. [tool.codespell]
  50. skip = '.git,*.pdf,*.svg,go.sum,package-lock.json,*.css'
  51. check-hidden = true
  52. ignore-regex = '^\s*"image/\S+": ".*|\b(inPort|anId|IST|Opps|Rouge|notifAction)\b'
  53. # some unfortunate names for variables
  54. ignore-words-list = 'ags,selt'