Skip to content

Commit 0bf5558

Browse files
[pre-commit.ci] pre-commit autoupdate (#2341)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/tox-dev/pyproject-fmt: v2.11.1 → v2.15.0](tox-dev/pyproject-fmt@v2.11.1...v2.15.0) - [github.com/astral-sh/ruff-pre-commit: v0.14.14 → v0.15.0](astral-sh/ruff-pre-commit@v0.14.14...v0.15.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent b0ad045 commit 0bf5558

File tree

2 files changed

+37
-63
lines changed

2 files changed

+37
-63
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ repos:
1919
hooks:
2020
- id: shellcheck
2121
- repo: https://github.com/tox-dev/pyproject-fmt
22-
rev: v2.11.1
22+
rev: v2.15.0
2323
hooks:
2424
- id: pyproject-fmt
2525
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: v0.14.14
26+
rev: v0.15.0
2727
hooks:
2828
- id: ruff
2929
args: ["--exit-non-zero-on-fix"]

pyproject.toml

Lines changed: 35 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,10 @@ name = "returns"
77
version = "0.26.0"
88
description = "Make your functions return something meaningful, typed, and safe!"
99
license = "BSD-3-Clause"
10-
1110
authors = [ "sobolevn <mail@sobolevn.me>" ]
12-
1311
readme = "README.md"
14-
1512
repository = "https://github.com/dry-python/returns"
1613
homepage = "https://returns.readthedocs.io"
17-
1814
keywords = [
1915
"functional programming",
2016
"fp",
@@ -26,7 +22,6 @@ keywords = [
2622
"mypy",
2723
"railway-oriented-programming",
2824
]
29-
3025
classifiers = [
3126
"Development Status :: 4 - Beta",
3227
"Intended Audience :: Developers",
@@ -36,63 +31,42 @@ classifiers = [
3631
"Topic :: Utilities",
3732
"Typing :: Typed",
3833
]
39-
40-
[tool.poetry.urls]
41-
"Funding" = "https://github.com/sponsors/dry-python"
42-
43-
[tool.poetry.plugins.pytest11]
44-
returns = "returns.contrib.pytest.plugin"
45-
46-
[tool.poetry.plugins.hypothesis]
47-
_ = "returns.contrib.hypothesis._entrypoint:_setup_hook"
48-
49-
[tool.poetry.dependencies]
50-
python = "^3.10"
51-
52-
typing-extensions = ">=4.0,<5.0"
53-
pytest = { version = ">=8,<10", optional = true }
54-
hypothesis = { version = "^6.136", optional = true }
55-
mypy = { version = ">=1.12,<1.18", optional = true }
56-
57-
[tool.poetry.group.dev.dependencies]
58-
anyio = "^4.3"
59-
trio = ">=0.30,<0.33"
60-
attrs = "^25.3"
61-
httpx = "^0.28"
62-
63-
wemake-python-styleguide = "^1.3"
64-
codespell = "^2.2"
65-
slotscheck = "^0.19"
66-
ruff = ">=0.12,<0.15"
67-
68-
pytest-cov = ">=6,<8"
69-
pytest-randomly = ">=3.12,<5.0"
70-
pytest-mypy-plugins = "^3.1"
71-
pytest-subtests = ">=0.14,<0.16"
72-
pytest-shard = "^0.1"
73-
covdefaults = "^2.3"
74-
75-
[tool.poetry.group.docs]
76-
optional = true
77-
78-
[tool.poetry.group.docs.dependencies]
79-
80-
sphinx = "^8.1"
81-
sphinx-autodoc-typehints = ">=2.3,<4.0"
82-
sphinxcontrib-mermaid = ">=1,<3"
83-
furo = ">=2024.5,<2026.0"
84-
myst-parser = "^4.0"
85-
tomli = "^2.0"
86-
87-
[tool.poetry.extras]
88-
compatible-mypy = [ "mypy" ]
89-
check-laws = [ "pytest", "hypothesis" ]
34+
dependencies.python = "^3.10"
35+
dependencies.typing-extensions = ">=4.0,<5.0"
36+
dependencies.pytest = { version = ">=8,<10", optional = true }
37+
dependencies.hypothesis = { version = "^6.136", optional = true }
38+
dependencies.mypy = { version = ">=1.12,<1.18", optional = true }
39+
extras.compatible-mypy = [ "mypy" ]
40+
extras.check-laws = [ "pytest", "hypothesis" ]
41+
group.dev.dependencies.anyio = "^4.3"
42+
group.dev.dependencies.trio = ">=0.30,<0.33"
43+
group.dev.dependencies.attrs = "^25.3"
44+
group.dev.dependencies.httpx = "^0.28"
45+
group.dev.dependencies.wemake-python-styleguide = "^1.3"
46+
group.dev.dependencies.codespell = "^2.2"
47+
group.dev.dependencies.slotscheck = "^0.19"
48+
group.dev.dependencies.ruff = ">=0.12,<0.15"
49+
group.dev.dependencies.pytest-cov = ">=6,<8"
50+
group.dev.dependencies.pytest-randomly = ">=3.12,<5.0"
51+
group.dev.dependencies.pytest-mypy-plugins = "^3.1"
52+
group.dev.dependencies.pytest-subtests = ">=0.14,<0.16"
53+
group.dev.dependencies.pytest-shard = "^0.1"
54+
group.dev.dependencies.covdefaults = "^2.3"
55+
group.docs.optional = true
56+
group.docs.dependencies.sphinx = "^8.1"
57+
group.docs.dependencies.sphinx-autodoc-typehints = ">=2.3,<4.0"
58+
group.docs.dependencies.sphinxcontrib-mermaid = ">=1,<3"
59+
group.docs.dependencies.furo = ">=2024.5,<2026.0"
60+
group.docs.dependencies.myst-parser = "^4.0"
61+
group.docs.dependencies.tomli = "^2.0"
62+
plugins.hypothesis._ = "returns.contrib.hypothesis._entrypoint:_setup_hook"
63+
plugins.pytest11.returns = "returns.contrib.pytest.plugin"
64+
urls."Funding" = "https://github.com/sponsors/dry-python"
9065

9166
[tool.ruff]
9267
# Ruff config: https://docs.astral.sh/ruff/settings
9368
target-version = "py310"
9469
line-length = 80
95-
9670
preview = true
9771
fix = true
9872
format.quote-style = "single"
@@ -139,8 +113,8 @@ lint.select = [
139113
"YTT", # flake8-2020
140114
]
141115
lint.ignore = [
142-
"A005", # allow to shadow stdlib and builtin module names
143-
"COM812", # trailing comma, conflicts with `ruff format`
116+
"A005", # allow to shadow stdlib and builtin module names
117+
"COM812", # trailing comma, conflicts with `ruff format`
144118
# Different doc rules that we don't really care about:
145119
"D100",
146120
"D104",
@@ -195,5 +169,5 @@ lint.pydocstyle.convention = "google"
195169
strict-imports = true
196170
require-subclass = true
197171
require-superclass = true
198-
exclude-modules = 'returns\.contrib\.'
199-
exclude-classes = 'returns\.primitives\.exceptions:UnwrapFailedError'
172+
exclude-modules = "returns\\.contrib\\."
173+
exclude-classes = "returns\\.primitives\\.exceptions:UnwrapFailedError"

0 commit comments

Comments
 (0)