Christophe Bornet
f241fd5c11
core: Add ruff rules RET ( #29384 )
...
See https://docs.astral.sh/ruff/rules/#flake8-return-ret
All auto-fixes
2025-04-02 16:59:56 -04:00
Eugene Yurtsev
9ae792f56c
core: 0.3.50 release ( #30623 )
...
0.3.50 release
2025-04-02 14:46:23 -04:00
Christophe Bornet
ccc3d32ec8
core: Add ruff rules for Pylint PLC (Convention) and PLE (Errors) ( #29286 )
...
See https://docs.astral.sh/ruff/rules/#pylint-pl
2025-04-02 10:58:03 -04:00
Christophe Bornet
558191198f
core: Add ruff rule FBT003 (boolean-trap) ( #29424 )
...
See
https://docs.astral.sh/ruff/rules/boolean-positional-value-in-call/#boolean-positional-value-in-call-fbt003
This PR also fixes some FBT001/002 in private methods but does not
enforce these rules globally atm.
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
2025-04-01 17:40:12 +00:00
Christophe Bornet
4f8ea13cea
core: Add ruff rules PERF ( #29375 )
...
See https://docs.astral.sh/ruff/rules/#perflint-perf
2025-04-01 13:34:56 -04:00
Christophe Bornet
8a33402016
core: Add ruff rules PT (pytest) ( #29381 )
...
See https://docs.astral.sh/ruff/rules/#flake8-pytest-style-pt
2025-04-01 13:31:07 -04:00
Christophe Bornet
768e4f695a
core: Add ruff rules S110 and S112 ( #30599 )
2025-04-01 13:17:22 -04:00
Christophe Bornet
88b4233fa1
core: Add ruff rules D (docstring) ( #29406 )
...
This ensures that the code is properly documented:
https://docs.astral.sh/ruff/rules/#pydocstyle-d
Related to #21983
2025-04-01 13:15:45 -04:00
Christophe Bornet
fdda1aaea1
core: Accept ALL ruff rules with exclusions ( #30595 )
...
This pull request updates the `pyproject.toml` configuration file to
modify the linting rules and ignored warnings for the project. The most
important changes include switching to a more comprehensive selection of
linting rules and updating the list of ignored rules to better align
with the project's requirements.
Linting rules update:
* Changed the `select` option to include all available linting rules by
setting it to `["ALL"]`.
Ignored rules update:
* Updated the `ignore` option to include specific rules that interfere
with the formatter, are incompatible with Pydantic, or are temporarily
excluded due to project constraints.
2025-04-01 11:17:51 -04:00
Christophe Bornet
026de908eb
core: Add ruff rules G, FA, INP, AIR and ISC ( #29334 )
...
Fixes mostly for rules G. See
https://docs.astral.sh/ruff/rules/#flake8-logging-format-g
2025-03-31 10:05:23 -04:00
Eugene Yurtsev
d075ad21a0
core[patch]: specify default event loop scope in pyproject.toml ( #30543 )
...
Specify default event loop scope
2025-03-28 19:51:19 +00:00
Christophe Bornet
e181d43214
core: Bump ruff version to 0.11 ( #30519 )
...
Changes are from the new TC006 rule:
https://docs.astral.sh/ruff/rules/runtime-cast-value/
TC006 is auto-fixed.
2025-03-27 13:01:49 -04:00
Christophe Bornet
b28a474e79
core[patch]: Add ruff rules for PLW (Pylint Warnings) ( #29288 )
...
See https://docs.astral.sh/ruff/rules/#warning-w_1
---------
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
2025-03-27 10:26:12 +00:00
ccurme
9a80be7bb7
core[patch]: release 0.3.49 ( #30500 )
2025-03-26 13:26:32 -04:00
Vadym Barda
7bc50730aa
core[patch]: release 0.3.48 ( #30458 )
2025-03-24 09:48:03 -04:00
ccurme
5588ca4cfb
core: release 0.3.47 ( #30396 )
2025-03-20 18:52:53 +00:00
Vadym Barda
73c04f4707
core[patch]: release 0.3.46 ( #30383 )
2025-03-19 15:09:08 -04:00
ccurme
315bb17ef5
core: release 0.3.45 ( #30277 )
2025-03-13 22:44:23 +00:00
ccurme
cd1ea8e94d
openai[patch]: support Responses API ( #30231 )
...
Co-authored-by: Bagatur <baskaryan@gmail.com >
2025-03-12 12:25:46 -04:00
Vadym Barda
23fa70f328
core[patch]: release 0.3.44 ( #30236 )
2025-03-11 18:59:02 -04:00
ccurme
1c993b921c
core[patch]: release 0.3.43 ( #30173 )
2025-03-07 21:56:00 +00:00
ccurme
4e5058f29c
core[patch]: release 0.3.42 ( #30163 )
2025-03-07 18:14:45 +00:00
ccurme
692a68bf1c
core[patch]: release 0.3.41 ( #30100 )
2025-03-04 15:08:57 +00:00
Christophe Bornet
9e6ffd1264
core: Add ruff rules PTH (pathlib) ( #29338 )
...
See https://docs.astral.sh/ruff/rules/#flake8-use-pathlib-pth
Co-authored-by: ccurme <chester.curme@gmail.com >
2025-02-28 13:22:20 -05:00
Christophe Bornet
b3885c124f
core: Add ruff rules TC ( #29268 )
...
See https://docs.astral.sh/ruff/rules/#flake8-type-checking-tc
Some fixes done for TC001,TC002 and TC003 but these rules are excluded
since they don't play well with Pydantic.
---------
Co-authored-by: Chester Curme <chester.curme@gmail.com >
2025-02-26 19:39:05 +00:00
Eugene Yurtsev
b525226531
core[patch]: version 0.3.40 ( #29997 )
...
Version 0.3.40 release
2025-02-25 23:09:40 +00:00
ccurme
5437ee385b
core[patch]: release 0.3.39 ( #29966 )
2025-02-24 11:47:01 -05:00
ccurme
0d3a3b99fc
core[patch]: release 0.3.38 ( #29962 )
2025-02-24 15:04:53 +00:00
Christophe Bornet
f6d4fec4d5
core: Add ruff rules ANN (type annotations) ( #29271 )
...
See https://docs.astral.sh/ruff/rules/#flake8-annotations-ann
The interest compared to only mypy is that ruff is very fast at
detecting missing annotations.
ANN101 and ANN102 are deprecated so we ignore them
ANN401 (no Any type) ignored to be in sync with mypy config
---------
Co-authored-by: ccurme <chester.curme@gmail.com >
2025-02-22 17:46:28 -05:00
ccurme
92889edafd
core[patch]: release 0.3.37 ( #29895 )
2025-02-19 20:04:35 +00:00
Eugene Yurtsev
8e5074d82d
core: release 0.3.36 ( #29869 )
...
Release 0.3.36
2025-02-18 19:51:43 +00:00
Christophe Bornet
3dffee3d0b
all: Bump blockbuster version to 1.5.18 ( #29806 )
...
Has fixes for running on Windows and non-CPython runtimes.
2025-02-14 07:55:38 -08:00
ccurme
e61f463745
core[patch]: release 0.3.35 ( #29764 )
2025-02-12 18:13:10 +00:00
ccurme
a91e58bc10
core: release 0.3.34 ( #29644 )
2025-02-06 15:53:56 -05:00
ccurme
d172984c91
infra: migrate to uv ( #29566 )
2025-02-06 13:36:26 -05:00
Christophe Bornet
aab2e42169
core[patch]: Use Blockbuster to detect blocking calls in asyncio during tests ( #29043 )
...
This PR uses the [blockbuster](https://github.com/cbornet/blockbuster )
library in langchain-core to detect blocking calls made in the asyncio
event loop during unit tests.
Avoiding blocking calls is hard as these can be deeply buried in the
code or made in 3rd party libraries.
Blockbuster makes it easier to detect them by raising an exception when
a call is made to a known blocking function (eg: `time.sleep`).
Adding blockbuster allowed to find a blocking call in
`aconfig_with_context` (it ends up calling `get_function_nonlocals`
which loads function code).
**Dependencies:**
- blockbuster (test)
**Twitter handle:** cbornet_
2025-01-31 10:06:34 -05:00
Erick Friis
07e2e80fe7
core: release 0.3.33 ( #29483 )
2025-01-29 14:11:53 -08:00
Erick Friis
8bf9c71673
core: release 0.3.32 ( #29450 )
2025-01-28 07:20:04 +00:00
Christophe Bornet
dbb6b7b103
core: Add ruff rules TRY (tryceratops) ( #29388 )
...
TRY004 ("use TypeError rather than ValueError") existing errors are
marked as ignore to preserve backward compatibility.
LMK if you prefer to fix some of them.
Co-authored-by: Erick Friis <erick@langchain.dev >
2025-01-24 05:01:40 +00:00
Christophe Bornet
e4a78dfc2a
core: Bump ruff version to 0.9 ( #29201 )
...
Also run some preview autofix and formatting
---------
Co-authored-by: Erick Friis <erick@langchain.dev >
2025-01-22 00:20:09 +00:00
Bagatur
923e6fb321
core[patch]: 0.3.31 ( #29320 )
2025-01-21 01:17:31 +00:00
Christophe Bornet
989eec4b7b
core: Add ruff rule S101 (no assert) ( #29267 )
...
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
2025-01-20 20:24:31 +00:00
Christophe Bornet
e5d62c6ce7
core: Add ruff rule W293 (whitespaces) ( #29272 )
2025-01-20 15:16:12 -05:00
ccurme
d5360b9bd6
core[patch]: release 0.3.30 ( #29256 )
2025-01-16 17:52:37 -05:00
ccurme
8e50e4288c
core[patch]: release 0.3.29 ( #29017 )
2025-01-03 14:58:39 -05:00
Bagatur
1c797ac68f
infra: speed up unit tests ( #28974 )
...
Co-authored-by: Erick Friis <erick@langchain.dev >
2025-01-02 04:13:08 +00:00
ccurme
f0e858b4e3
core[patch]: release 0.3.28 ( #28837 )
2024-12-19 17:52:32 -05:00
Bagatur
557f63c2e6
core[patch]: Release 0.3.27 ( #28799 )
2024-12-18 21:58:03 +00:00
Erick Friis
5cf965004c
core: release 0.3.26 ( #28793 )
2024-12-18 17:28:42 +00:00
Erick Friis
387284c259
core: release 0.3.25 ( #28718 )
2024-12-14 02:22:28 +00:00