[tool.flit.sdist]
include = [
"docs/",
+ "examples/",
"requirements/",
"tests/",
- "CHANGES.rst",
+ "CHANGES.md",
"tox.ini",
]
exclude = [
show_error_codes = true
pretty = true
strict = true
+local_partial_types = true
+warn_unreachable = true
- [[tool.mypy.overrides]]
- module = [
- "jinja2.defaults",
- "markupsafe",
+ [tool.pyright]
+ pythonVersion = "3.8"
+ include = ["src/jinja2"]
+ typeCheckingMode = "basic"
+
+ [tool.ruff]
+ src = ["src"]
+ fix = true
+ show-fixes = true
+ output-format = "full"
+
+ [tool.ruff.lint]
+ select = [
+ "B", # flake8-bugbear
+ "E", # pycodestyle error
+ "F", # pyflakes
+ "I", # isort
+ "UP", # pyupgrade
+ "W", # pycodestyle warning
]
- no_implicit_reexport = false
+ ignore-init-module-imports = true
+
+ [tool.ruff.lint.isort]
+ force-single-line = true
+ order-by-type = false
stream = ext.filter_stream(stream) # type: ignore
if not isinstance(stream, TokenStream):
- stream = TokenStream(stream, name, filename) # type: ignore
- stream = TokenStream(stream, name, filename)
++ stream = TokenStream(stream, name, filename) # type: ignore[unreachable]
return stream