Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,12 @@ ignore = [
"TRY003", # https://docs.astral.sh/ruff/rules/raise-vanilla-args/
"TRY301", # https://docs.astral.sh/ruff/rules/raise-within-try/
]

[tool.pyrefly]
python-version = "3.8.0"
site-package-path = ["./stubs"]
infer-with-first-use = false

[tool.pyrefly.errors]
bad-override = "ignore"
missing-source = "ignore"
Comment on lines +154 to +161

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would be fine with introducing those as a means of evaluating different type checkers (there is also ty). I'm not super confident that pyright has a bright future.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That said, please adapt the configuration so that there is not a ton of errors when running pyrefly check. Ignoring errors in tests and third_party would be a start.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just to remove some initial friction when browsing the repository with a pyrefly config enabled. But I could add some disabled checks. I actually haven’t ran pyrefly in lint mode from the CLI for this. Nor do I think we should engage further in adding this to CI.

Loading