Fix invalid escape sequence in EKS Hook module #39252
Labels
area:providers
good first issue
kind:meta
High-level information important to the community
provider:amazon-aws
AWS/Amazon - related issues
Body
Right now import
airflow/providers/amazon/aws/hooks/eks.py
raise DeprecationWarning / SyntaxWarning (depends on python version)We should avoid to use something that deprecated in Python itself years ago in Python 3.6.
airflow/airflow/providers/amazon/aws/hooks/eks.py
Lines 80 to 81 in b7ac00d
airflow/airflow/providers/amazon/aws/hooks/eks.py
Lines 91 to 93 in b7ac00d
\
in the end of the line make sense only in regular strings, not in triple quoted, however right now it work as intended - remove new line in the end of the lineNote
This rule right now ignored in statical code checks (provided by ruff rule
W605
) on module levelairflow/pyproject.toml
Lines 392 to 393 in 79b5443
So it also required to remove this lines from
pyproject.toml
,Warning
Ruff Autofix suggest use raw string here, however it is not a case here and better rewrite built this command.
Previous attempt #38734 is reverted #38864
Committer
The text was updated successfully, but these errors were encountered: