Closed KelSolaar closed 1 year ago
So, I think what you need to do here is tell Ruff that the imports from colour.hints
should be treated as aliases for the typing
module, like so:
[tool.ruff]
typing-modules = ["colour.hints"]
Can you give that a try? Will reopen if you're still seeing this of course!
That was it, thank you!
For future visitors, the solution above will throw a warning warning: The top-level linter settings are deprecated in favour of their counterparts in the lint section. Please update the following options in pyproject.toml: - 'typing-modules' -> 'lint.typing-modules'
. The updated code is:
[tool.ruff.lint]
typing-modules = ["colour.hints"]
Hello,
Using
ruff 0.0.237
, I get similarF722
andF821
errors as those reported in #548. I'm opening a new ticket as the previous one is old and closed.Given the following:
I only have 1413 of them! ;)
Cheers,
Thomas