Skip to content

Instantly share code, notes, and snippets.

@gatheluck
Created November 10, 2023 01:04
Show Gist options
  • Save gatheluck/aae4a4201f6e33828a27267ca186f5ee to your computer and use it in GitHub Desktop.
Save gatheluck/aae4a4201f6e33828a27267ca186f5ee to your computer and use it in GitHub Desktop.
pyproject.toml setting
[tool.black]
line-length = 88
[tool.mypy]
python_version = "3.8"
# following setting is same as pysen
# https://github.com/pfnet/pysen/blob/main/setup.cfg#L12
check_untyped_defs = true
disallow_any_decorated = false
disallow_any_generics = false
disallow_any_unimported = false
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = false
disallow_untyped_defs = true
ignore_errors = false
ignore_missing_imports = true
no_implicit_optional = true
show_error_codes = true
strict_equality = true
strict_optional = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.ruff]
select = ["E", "F", "B", "I", "N", "D"]
ignore = ["E501", "B006", "D100", "D104", "D205"]
line-length = 88
target-version = "py38"
fixable = ["E", "F", "I", "D"]
unfixable = ["F401", "F841"]
[tool.ruff.pydocstyle]
convention = "google"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment