Skip to content

Commit

Permalink
Bump packages, bump version (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
dosisod authored Oct 17, 2023
1 parent 1fa1d53 commit 6db8eb5
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
6 changes: 3 additions & 3 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
attrs==23.1.0
black==23.9.1
black==23.10.0
click==8.1.7
colorama==0.4.6
coverage==7.3.2
Expand All @@ -17,5 +17,5 @@ py==1.11.0
pyparsing==3.1.1
pytest-cov==4.1.0
pytest==7.4.2
ruff==0.0.292
typos==1.16.17
ruff==0.1.0
typos==1.16.20
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "refurb"
version = "1.21.0"
version = "1.22.0"
description = "A tool for refurbish and modernize Python codebases"
authors = ["dosisod"]
license = "GPL-3.0-only"
Expand Down Expand Up @@ -75,6 +75,7 @@ testpaths = ["test"]

[tool.ruff]
line-length = 79
preview = true

select = ["ALL"]

Expand Down Expand Up @@ -105,6 +106,9 @@ extend-ignore = [
"T201",
"TD002", "TD003",
"TRY003", "TRY004",

# Consider this
"CPY001",
]

extend-exclude = ["test/data*"]
Expand All @@ -114,6 +118,7 @@ target-version = "py310"
[tool.ruff.per-file-ignores]
"test/*" = ["ANN201", "ARG001", "E501", "TCH001", "TCH002"]
"refurb/main.py" = ["E501"]
"test/e2e/gbk.py" = ["FURB105"]

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
2 changes: 1 addition & 1 deletion refurb/checks/pathlib/with_suffix.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ErrorInfo(Error):

name = "use-pathlib-with-suffix"
code = 100
msg: str = "Use `Path(x).with_suffix(y)` instead of slice and concat" # noqa: E501
msg: str = "Use `Path(x).with_suffix(y)` instead of slice and concat"
categories = ("pathlib",)


Expand Down
2 changes: 1 addition & 1 deletion test/test_check_formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ def test_checks_are_formatted_properly() -> None:
assert_name_field_in_valid_format(error.name)
assert_name_is_unique(error.name, error_names)

except AssertionError as ex: # noqa: PERF203
except AssertionError as ex:
raise ValueError(f"{module.__file__}: {ex}") from ex
8 changes: 6 additions & 2 deletions test/test_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ def test_disabled_check_ran_if_explicitly_enabled() -> None:
)
)

expected = "test/e2e/dummy.py:1:1 [XYZ101]: This message is disabled by default" # noqa: E501
expected = (
"test/e2e/dummy.py:1:1 [XYZ101]: This message is disabled by default"
)

assert len(errors) == 1
assert str(errors[0]) == expected
Expand All @@ -108,7 +110,9 @@ def test_disabled_check_ran_if_enable_all_is_set() -> None:
)
)

expected = "test/e2e/dummy.py:1:1 [XYZ101]: This message is disabled by default" # noqa: E501
expected = (
"test/e2e/dummy.py:1:1 [XYZ101]: This message is disabled by default"
)

assert len(errors) == 1
assert str(errors[0]) == expected
Expand Down

0 comments on commit 6db8eb5

Please sign in to comment.