1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- [tool.ruff]
- exclude = [
- ".git",
- "__pycache__",
- "setup.py",
- "build",
- "dist",
- "releases",
- ".venv",
- ".mypy_cache",
- ".pytest_cache",
- ".vscode",
- ".github",
- ]
- line-length = 120
- indent-width = 4
- [tool.ruff.lint]
- select = [
- "E", # pycodestyle errors
- "F", # pyflakes errors
- "W", # pycodestyle warnings
- "C", # mccabe complexity checker
- "B", # bugbear best practices checker
- "T", # mypy type errors
- "B", # flake8-bugbear best practices checker
- "I001", # isort import order
- ]
- ignore = []
- # Allow fix for all enabled rules (when `--fix`) is provided.
- fixable = ["ALL"]
- unfixable = []
- [tool.ruff.lint.per-file-ignores]
- "__init__.py" = ["F401", "F403"] # unused import
- "_init.py" = ["F401", "F403"] # unused import
- "taipy/config/stubs/pyi_header.py" = ["F401", "F403"] # unused import
- "taipy/templates/*" = ["F401", "F403", "T201"] # unused import, `print` found
- "taipy/gui/utils/types.py" = ["B024"] # abstract base class with no abstract methods
- [tool.ruff.lint.mccabe]
- max-complexity = 18
- [tool.ruff.lint.pydocstyle]
- convention = "google"
- [tool.mypy]
- ignore_missing_imports = true
- implicit_optional = true
- namespace_packages = false
- exclude = "(taipy/templates/|generate_pyi.py|tools)"
- follow_imports = "skip"
- [tool.pyright]
- [tool.codespell]
- skip = '.git,*.pdf,*.svg,go.sum,package-lock.json,*.css'
- check-hidden = true
- ignore-regex = '^\s*"image/\S+": ".*|\b(inPort|anId|IST|Opps|Rouge|notifAction)\b'
- # some unfortunate names for variables
- ignore-words-list = 'ags,selt'
|