@@ -71,20 +71,14 @@ docstring-code-format = true
71
71
[tool .ruff .lint ]
72
72
select = [ " ALL" ,]
73
73
ignore = [
74
- " ANN401" , # Dynamically typed expressions (typing.Any)
75
74
" C90" , # McCabe complexity
76
- " C901" , # Complexity
77
75
" COM812" , # Messes with the formatter
76
+ " CPY" , # No copyright
78
77
" FIX002" , # Line contains TODO
79
78
" ISC001" , # Messes with the formatter
80
79
" PERF203" , # Rarely useful
81
- " PLR2004" , # Magic value used in comparison
82
- " PLR0915" , # Too many statements
83
- " PLR0911" , # Too many return statements
84
- " PLR0912" , # Too many branches
85
- " PLR0913" , # Too many arguments in function definition
80
+ " PLR09" , # Too many something (arg, statements, etc)
86
81
" RUF012" , # Doesn't play well with Pydantic
87
- " S112" , # Rarely useful
88
82
" TC001" , # Doesn't play well with Pydantic
89
83
" TC002" , # Doesn't play well with Pydantic
90
84
" TC003" , # Doesn't play well with Pydantic
@@ -100,7 +94,6 @@ flake8-annotations.allow-star-arg-any = true
100
94
flake8-annotations.mypy-init-return = true
101
95
flake8-type-checking.runtime-evaluated-base-classes = [" pydantic.BaseModel" ," langchain_core.load.serializable.Serializable" ," langchain_core.runnables.base.RunnableSerializable" ]
102
96
pep8-naming.classmethod-decorators = [ " classmethod" , " langchain_core.utils.pydantic.pre_init" , " pydantic.field_validator" , " pydantic.v1.root_validator" ,]
103
- pyupgrade.keep-runtime-typing = true
104
97
105
98
[tool .ruff .lint .pydocstyle ]
106
99
convention = " google"
0 commit comments