Skip to content

chore(deps-dev): bump ruff from 0.4.10 to 0.5.0 #4644

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

Merged
merged 3 commits into from
Jun 28, 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 .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
types: [python]
- id: ruff
name: linting-format::ruff
entry: poetry run ruff
entry: poetry run ruff check
language: system
types: [python]
- repo: https://github.com/igorshubovych/markdownlint-cli
Expand Down
39 changes: 20 additions & 19 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ types-python-dateutil = "^2.8.19.6"
aws-cdk-aws-appsync-alpha = "^2.59.0a0"
httpx = ">=0.23.3,<0.28.0"
sentry-sdk = ">=1.22.2,<3.0.0"
ruff = ">=0.0.272,<0.4.11"
ruff = ">=0.0.272,<0.5.1"
retry2 = "^0.9.5"
pytest-socket = ">=0.6,<0.8"
types-redis = "^4.6.0.7"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ def test_copy_config_to_ext_loggers(stdout, logger, log_level):
logs = capture_multiple_logging_statements_output(stdout)

# THEN all external loggers used Powertools for AWS Lambda (Python) handler, formatter and log level
for index, logger in enumerate([logger_1, logger_2]):
assert len(logger.handlers) == 1
assert isinstance(logger.handlers[0], logging.StreamHandler)
assert isinstance(logger.handlers[0].formatter, formatter.LambdaPowertoolsFormatter)
assert logger.level == log_level.INFO.value
for index, inner_logger in enumerate([logger_1, logger_2]):
assert len(inner_logger.handlers) == 1
assert isinstance(inner_logger.handlers[0], logging.StreamHandler)
assert isinstance(inner_logger.handlers[0].formatter, formatter.LambdaPowertoolsFormatter)
assert inner_logger.level == log_level.INFO.value
assert logs[index]["message"] == msg
assert logs[index]["level"] == log_level.INFO.name

Expand Down
Loading