Skip to content

Commit 605ba23

Browse files
authored
Pull in array split fix (#245)
1 parent 125f7ee commit 605ba23

File tree

5 files changed

+17
-15
lines changed

5 files changed

+17
-15
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
77
- repo: https://github.com/python-jsonschema/check-jsonschema
8-
rev: 0.29.0
8+
rev: 0.29.1
99
hooks:
1010
- id: check-github-workflows
1111
args: [ "--verbose" ]
@@ -20,11 +20,11 @@ repos:
2020
- id: tox-ini-fmt
2121
args: ["-p", "fix"]
2222
- repo: https://github.com/tox-dev/pyproject-fmt
23-
rev: "2.1.4"
23+
rev: "2.2.0"
2424
hooks:
2525
- id: pyproject-fmt
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: "v0.5.4"
27+
rev: "v0.5.5"
2828
hooks:
2929
- id: ruff-format
3030
- id: ruff

pyproject.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,19 @@ dynamic = [
3333
"version",
3434
]
3535
dependencies = [
36-
"pyproject-fmt-rust==1.1.5",
36+
"pyproject-fmt-rust==1.1.6",
3737
"tomli>=2.0.1; python_version<'3.11'",
3838
]
3939
optional-dependencies.docs = [
40-
"furo>=2024.5.6",
41-
"sphinx>=7.3.7",
40+
"furo>=2024.7.18",
41+
"sphinx>=7.4.4",
4242
"sphinx-argparse-cli>=1.16",
43-
"sphinx-autodoc-typehints>=2.2.2",
43+
"sphinx-autodoc-typehints>=2.2.3",
4444
"sphinx-copybutton>=0.5.2",
4545
]
4646
optional-dependencies.test = [
4747
"covdefaults>=2.3",
48-
"pytest>=8.2.2",
48+
"pytest>=8.3.2",
4949
"pytest-cov>=5",
5050
"pytest-mock>=3.14",
5151
]
@@ -83,8 +83,9 @@ lint.ignore = [
8383
"CPY", # No copyright statements
8484
"D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
8585
"D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
86+
"DOC501", # not working with Sphinx
8687
"ISC001", # Conflict with formatter
87-
"S104", # Possible binding to all interface
88+
"S104", # Possible binding to all interfaces
8889
]
8990
lint.per-file-ignores."tests/**/*.py" = [
9091
"D", # don"t care about documentation in tests

src/pyproject_fmt/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def pyproject_toml_path_creator(argument: str) -> Path | None:
5555
5656
:param argument: the string argument passed in
5757
:return: the pyproject.toml path or None if stdin
58+
:raises ArgumentTypeError: invalid argument
5859
"""
5960
if argument == "-":
6061
return None # stdin, no further validation needed

tests/test_main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ def no_color(diff: Any) -> Any:
8989
),
9090
(
9191
'[build-system]\nrequires = ["hatchling>=0.14.0"]',
92-
'[build-system]\nrequires = [\n "hatchling>=0.14",\n]\n',
93-
"--- {0}\n\n+++ {0}\n\n@@ -1,2 +1,4 @@\n\n [build-system]\n-requires = "
94-
'["hatchling>=0.14.0"]\n+requires = [\n+ "hatchling>=0.14",\n+]\n',
92+
'[build-system]\nrequires = [ "hatchling>=0.14" ]\n',
93+
"--- {0}\n\n+++ {0}\n\n@@ -1,2 +1,2 @@\n\n [build-system]\n-requires = "
94+
'["hatchling>=0.14.0"]\n+requires = [ "hatchling>=0.14" ]\n',
9595
),
9696
],
9797
)
@@ -258,7 +258,7 @@ def test_pyproject_ftm_api_changed(tmp_path: Path, capsys: pytest.CaptureFixture
258258
"""
259259
filename = tmp_path / "pyproject.toml"
260260
filename.write_text(dedent(txt))
261-
res = run([str(filename), "--no-print-diff"])
261+
res = run([str(filename), "--no-print-diff", "--column-width", "20"])
262262

263263
assert res == 1
264264

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ commands =
3535
description = run static analysis and style check using flake8
3636
skip_install = true
3737
deps =
38-
pre-commit>=3.7.1
38+
pre-commit>=3.8
3939
commands =
4040
pre-commit run --all-files --show-diff-on-failure
4141
python -c 'print("hint: run {envdir}/bin/pre-commit install to add checks as pre-commit hook")'
4242

4343
[testenv:type]
4444
description = run type check on code base
4545
deps =
46-
mypy==1.10.1
46+
mypy==1.11.1
4747
set_env =
4848
{tty:MYPY_FORCE_COLOR = 1}
4949
commands =

0 commit comments

Comments
 (0)