Init: init python template

This commit is contained in:
Kirill Samoylenkov 2025-11-17 19:27:40 +05:00
parent 8845570dc3
commit a8af757a94
6 changed files with 367 additions and 0 deletions

50
python/pyproject.toml Normal file
View file

@ -0,0 +1,50 @@
[project]
name = ""
version = "0.1.0"
description = ""
readme = "README.md"
requires-python = ">=3.13,<3.14"
dependencies = [
"pyrefly>=0.37.0",
"ruff>=0.14.0",
]
[tool.ruff]
target-version = "py313"
line-length = 70
indent-width = 4
exclude = [
".git/",
"venv/",
".venv/",
"vscode/",
"__pycache__/",
".ruff_cache/",
]
[tool.ruff.lint]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
select = ["E", "F", "N", "I", "C90", "T", "S"]
ignore = []
fixable = ["ALL"]
unfixable = []
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pyrefly]
project-includes = ["**/*"]
python-platform = "linux"
python-version = "3.13"
infer-with-first-use = true
use-ignore-files = true
project-excludes = [
"**/node_modules",
"**/__pycache__",
"**/.ruff_cache",
"**/*venv/**/*",
]