-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
For this code:
import pydantic
class Thing(pydantic.BaseModel):
@pydantic.root_validator(pre=True)
def _validate_something(cls, values):
return valuesAnd this configuration:
[pep8-naming]
classmethod-decorators = ["classmethod", "pydantic.root_validator"]I get this output:
❯ pipx inject ruff ruff==0.0.243
injected package ruff into venv ruff
done! ✨ 🌟 ✨
❯ ruff --version
ruff 0.0.243
❯ ruff --config bug.toml --select N805 bug.py
❯ pipx inject ruff ruff==0.0.244
injected package ruff into venv ruff
done! ✨ 🌟 ✨
❯ ruff --version
ruff 0.0.244
❯ ruff --config bug.toml --select N805 bug.py
bug.py:5:29: N805 First argument of a method should be named `self`
Found 1 error.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working