Skip to content

Commit 1a002c3

Browse files
🌿 Fern Regeneration -- July 9, 2025 (#678)
* SDK regeneration * Fix types * Test * Refactor class inheritance order for ClientV2 and AsyncClientV2 * Fix * Remove deprecated test_response_format from TestClient * Add aliases --------- Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: Billy Trend <billy@cohere.com>
1 parent 9db3c51 commit 1a002c3

File tree

248 files changed

+18686
-17751
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

248 files changed

+18686
-17751
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
dist/
21
.mypy_cache/
2+
.ruff_cache/
33
__pycache__/
4+
dist/
45
poetry.toml
5-
.ruff_cache/

poetry.lock

Lines changed: 111 additions & 104 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "cohere"
33

44
[tool.poetry]
55
name = "cohere"
6-
version = "5.15.1"
6+
version = "5.16.0"
77
description = ""
88
readme = "README.md"
99
authors = []
@@ -46,13 +46,13 @@ tokenizers = ">=0.15,<1"
4646
types-requests = "^2.0.0"
4747
typing_extensions = ">= 4.0.0"
4848

49-
[tool.poetry.dev-dependencies]
50-
mypy = "1.0.1"
49+
[tool.poetry.group.dev.dependencies]
50+
mypy = "==1.13.0"
5151
pytest = "^7.4.0"
5252
pytest-asyncio = "^0.23.5"
5353
python-dateutil = "^2.9.0"
5454
types-python-dateutil = "^2.9.0.20240316"
55-
ruff = "^0.5.6"
55+
ruff = "==0.11.5"
5656

5757
[tool.pytest.ini_options]
5858
testpaths = [ "tests" ]
@@ -64,6 +64,26 @@ plugins = ["pydantic.mypy"]
6464
[tool.ruff]
6565
line-length = 120
6666

67+
[tool.ruff.lint]
68+
select = [
69+
"E", # pycodestyle errors
70+
"F", # pyflakes
71+
"I", # isort
72+
]
73+
ignore = [
74+
"E402", # Module level import not at top of file
75+
"E501", # Line too long
76+
"E711", # Comparison to `None` should be `cond is not None`
77+
"E712", # Avoid equality comparisons to `True`; use `if ...:` checks
78+
"E721", # Use `is` and `is not` for type comparisons, or `isinstance()` for insinstance checks
79+
"E722", # Do not use bare `except`
80+
"E731", # Do not assign a `lambda` expression, use a `def`
81+
"F821", # Undefined name
82+
"F841" # Local variable ... is assigned to but never used
83+
]
84+
85+
[tool.ruff.lint.isort]
86+
section-order = ["future", "standard-library", "third-party", "first-party"]
6787

6888
[build-system]
6989
requires = ["poetry-core"]

0 commit comments

Comments
 (0)