Add Pyrefly: type checker
This commit is contained in:
parent
ee256c4c17
commit
7578950626
2 changed files with 35 additions and 5 deletions
|
|
@ -5,10 +5,10 @@ description = "Add your description here"
|
|||
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
|
||||
|
|
@ -25,16 +25,26 @@ exclude = [
|
|||
|
||||
[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/**/*",
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue