Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump ruff from 0.1.15 to 0.2.0 #175

Merged
merged 2 commits into from
Feb 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pip_check_reqs/find_extra_reqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def main(arguments: list[str] | None = None) -> None:
elif parse_result.verbose:
level = logging.INFO
else:
level = logging.WARN
level = logging.WARNING
log.setLevel(level)
common.log.setLevel(level)

Expand Down
2 changes: 1 addition & 1 deletion pip_check_reqs/find_missing_reqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def main(arguments: list[str] | None = None) -> None:
elif parse_result.verbose:
level = logging.INFO
else:
level = logging.WARN
level = logging.WARNING
log.setLevel(level)
common.log.setLevel(level)

Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,11 @@ strict = true

[tool.ruff]

line-length = 79
target-version = "py39"

[tool.ruff.lint]

select = ["ALL"]

ignore = [
Expand All @@ -115,8 +118,6 @@ ignore = [
"S101",
]

line-length = 79

# Do not automatically remove commented out code.
# We comment out code during development, and with VSCode auto-save, this code
# is sometimes annoyingly removed.
Expand Down
2 changes: 1 addition & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ruff==0.1.15
ruff==0.2.0
mypy
pyenchant
pylint
Expand Down
4 changes: 2 additions & 2 deletions tests/test_find_extra_reqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def test_main_failure(
source_dir = tmp_path / "source"
source_dir.mkdir()

caplog.set_level(logging.WARN)
caplog.set_level(logging.WARNING)

with pytest.raises(SystemExit) as excinfo:
find_extra_reqs.main(
Expand Down Expand Up @@ -130,7 +130,7 @@ def test_logging_config(
for event in [
(logging.DEBUG, "debug"),
(logging.INFO, "info"),
(logging.WARN, "warn"),
(logging.WARNING, "warn"),
]:
find_extra_reqs.log.log(*event)

Expand Down
4 changes: 2 additions & 2 deletions tests/test_find_missing_reqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def test_main_failure(
# We choose `pytest` because we know it is installed.
source_file.write_text("import pytest")

caplog.set_level(logging.WARN)
caplog.set_level(logging.WARNING)

with pytest.raises(SystemExit) as excinfo:
find_missing_reqs.main(
Expand Down Expand Up @@ -140,7 +140,7 @@ def test_logging_config(
for event in [
(logging.DEBUG, "debug"),
(logging.INFO, "info"),
(logging.WARN, "warn"),
(logging.WARNING, "warn"),
]:
find_missing_reqs.log.log(*event)

Expand Down
Loading