@@ -65,13 +65,12 @@ langchain-text-splitters = { path = "../text-splitters" }
65
65
66
66
[tool .mypy ]
67
67
plugins = [" pydantic.mypy" ]
68
- strict = " True"
69
- strict_bytes = " True"
68
+ strict = true
70
69
enable_error_code = " deprecated"
71
70
72
71
# TODO: activate for 'strict' checking
73
- disallow_any_generics = " False "
74
- warn_return_any = " False "
72
+ disallow_any_generics = false
73
+ warn_return_any = false
75
74
76
75
77
76
[tool .ruff ]
@@ -83,11 +82,6 @@ docstring-code-format = true
83
82
[tool .ruff .lint ]
84
83
select = [ " ALL" ,]
85
84
ignore = [
86
- " C90" , # McCabe complexity
87
- " COM812" , # Messes with the formatter
88
- " CPY" , # No copyright
89
- " FIX002" , # Line contains TODO
90
- " ISC001" , # Messes with the formatter
91
85
" C90" , # McCabe complexity
92
86
" COM812" , # Messes with the formatter
93
87
" CPY" , # No copyright
@@ -101,13 +95,6 @@ ignore = [
101
95
" TC003" , # Doesn't play well with Pydantic
102
96
" TD002" , # Missing author in TODO
103
97
" TD003" , # Missing issue link in TODO
104
- " PLR09" , # Too many something (arg, statements, etc)
105
- " RUF012" , # Doesn't play well with Pydantic
106
- " TC001" , # Doesn't play well with Pydantic
107
- " TC002" , # Doesn't play well with Pydantic
108
- " TC003" , # Doesn't play well with Pydantic
109
- " TD002" , # Missing author in TODO
110
- " TD003" , # Missing issue link in TODO
111
98
112
99
# TODO rules
113
100
" ANN401" , # No Any types
@@ -116,7 +103,10 @@ ignore = [
116
103
" ERA" , # No commented-out code
117
104
" PLR2004" , # Comparison to magic number
118
105
]
119
- unfixable = [" PLW1510" ,]
106
+ unfixable = [
107
+ " B028" , # People should intentionally tune the stacklevel
108
+ " PLW1510" , # People should intentionally set the check argument
109
+ ]
120
110
121
111
flake8-annotations.allow-star-arg-any = true
122
112
flake8-annotations.mypy-init-return = true
@@ -127,6 +117,12 @@ pydocstyle.convention = "google"
127
117
pydocstyle.ignore-var-parameters = true
128
118
pyupgrade.keep-runtime-typing = true
129
119
120
+ [tool .ruff .lint .per-file-ignores ]
121
+ "langchain_core/utils/mustache.py" = [ " PLW0603" ,]
122
+ "tests/unit_tests/test_tools.py" = [ " ARG" ,]
123
+ "tests/**" = [ " D1" , " S" , " SLF" ,]
124
+ "scripts/**" = [ " INP" , " S" ,]
125
+
130
126
[tool .coverage .run ]
131
127
omit = [ " tests/*" ,]
132
128
@@ -137,8 +133,3 @@ asyncio_mode = "auto"
137
133
filterwarnings = [ " ignore::langchain_core._api.beta_decorator.LangChainBetaWarning" ,]
138
134
asyncio_default_fixture_loop_scope = " function"
139
135
140
- [tool .ruff .lint .per-file-ignores ]
141
- "langchain_core/utils/mustache.py" = [ " PLW0603" ,]
142
- "tests/unit_tests/test_tools.py" = [ " ARG" ,]
143
- "tests/**" = [ " D1" , " S" , " SLF" ,]
144
- "scripts/**" = [ " INP" , " S" ,]
0 commit comments