Skip to content

Instantly share code, notes, and snippets.

@code-yeongyu
Created January 21, 2025 06:32
ruff & mypy & pytest
[tool.ruff]
line-length = 119
target-version = "py312"
lint.select = [
"PLE",
"PLW",
"E",
"W",
"F",
"FA",
"I",
"ISC",
"Q",
"UP",
"C4",
"PT",
]
preview = true
[tool.ruff.lint.flake8-quotes]
inline-quotes = "double"
docstring-quotes = "double"
multiline-quotes = "double"
[tool.ruff.lint.flake8-pytest-style]
mark-parentheses = true
fixture-parentheses = true
[tool.pytest.ini_options]
python_files = ["tests.py", "test_*.py", "*_tests.py", "*_test.py"]
addopts = """\
-n auto \
"""
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment