Skip to content

Commit 00f699c

Browse files
authored
chore(core): cleanup pyproject.toml (#32865)
1 parent e36e25f commit 00f699c

File tree

1 file changed

+13
-22
lines changed

1 file changed

+13
-22
lines changed

libs/core/pyproject.toml

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,12 @@ langchain-text-splitters = { path = "../text-splitters" }
6565

6666
[tool.mypy]
6767
plugins = ["pydantic.mypy"]
68-
strict = "True"
69-
strict_bytes = "True"
68+
strict = true
7069
enable_error_code = "deprecated"
7170

7271
# 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
7574

7675

7776
[tool.ruff]
@@ -83,11 +82,6 @@ docstring-code-format = true
8382
[tool.ruff.lint]
8483
select = [ "ALL",]
8584
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
9185
"C90", # McCabe complexity
9286
"COM812", # Messes with the formatter
9387
"CPY", # No copyright
@@ -101,13 +95,6 @@ ignore = [
10195
"TC003", # Doesn't play well with Pydantic
10296
"TD002", # Missing author in TODO
10397
"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
11198

11299
# TODO rules
113100
"ANN401", # No Any types
@@ -116,7 +103,10 @@ ignore = [
116103
"ERA", # No commented-out code
117104
"PLR2004", # Comparison to magic number
118105
]
119-
unfixable = ["PLW1510",]
106+
unfixable = [
107+
"B028", # People should intentionally tune the stacklevel
108+
"PLW1510", # People should intentionally set the check argument
109+
]
120110

121111
flake8-annotations.allow-star-arg-any = true
122112
flake8-annotations.mypy-init-return = true
@@ -127,6 +117,12 @@ pydocstyle.convention = "google"
127117
pydocstyle.ignore-var-parameters = true
128118
pyupgrade.keep-runtime-typing = true
129119

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+
130126
[tool.coverage.run]
131127
omit = [ "tests/*",]
132128

@@ -137,8 +133,3 @@ asyncio_mode = "auto"
137133
filterwarnings = [ "ignore::langchain_core._api.beta_decorator.LangChainBetaWarning",]
138134
asyncio_default_fixture_loop_scope = "function"
139135

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

Comments
 (0)