Skip to content

Commit 2be73d9

Browse files
committed
chore: Enable pylint within ruff
1 parent 0f8f433 commit 2be73d9

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

aws_lambda_builders/workflows/dotnet_clipackage/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ def _is_symlink(self, file_info):
7272
bool
7373
A response regarding whether the ZipInfo defines a symlink or not.
7474
"""
75-
76-
return (file_info.external_attr >> 28) == 0xA
75+
symlink = 0xA
76+
return (file_info.external_attr >> 28) == symlink
7777

7878
def _extract(self, file_info, output_dir, zip_ref):
7979
"""

aws_lambda_builders/workflows/python_pip/compat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ def pip_import_string(python_exe):
1818
# Pip moved its internals to an _internal module in version 10.
1919
# In order to be compatible with version 9 which has it at at the
2020
# top level we need to figure out the correct import path here.
21-
if pip_major_version == 9:
21+
pip_version_9 = 9
22+
if pip_major_version == pip_version_9:
2223
return "from pip import main"
2324
# Pip changed their import structure again in 19.3
2425
# https://github.com/pypa/pip/commit/09fd200

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
[tool.ruff]
22
line-length = 120
33

4+
select = [
5+
"E", # Pyflakes
6+
"F", # Pyflakes
7+
"PL", # pylint
8+
]
9+
410
[tool.ruff.per-file-ignores]
511
"__init__.py" = ["F401", "E501"]
612
"aws_lambda_builders/workflow.py" = ["E501"]

0 commit comments

Comments
 (0)