Skip to content

Commit

Permalink
chore: update ruff params according to warning message (#7060)
Browse files Browse the repository at this point in the history
  • Loading branch information
mndeveci committed May 13, 2024
1 parent 0849b2a commit 4cd3c44
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Make.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function Test {
}

function Lint {
ruff samcli
ruff check samcli schema
mypy setup.py samcli tests
}

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ smoke-test:

lint:
# Linter performs static analysis to catch latent bugs
ruff samcli schema
ruff check samcli schema
# mypy performs type check
mypy --exclude /testdata/ --exclude /init/templates/ --no-incremental setup.py samcli tests schema

Expand Down Expand Up @@ -84,4 +84,4 @@ update-reproducible-win-reqs:
pip-compile --generate-hashes --allow-unsafe -o requirements\reproducible-win.txt


update-reproducible-reqs: update-reproducible-linux-reqs update-reproducible-mac-reqs
update-reproducible-reqs: update-reproducible-linux-reqs update-reproducible-mac-reqs
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ requires = ["setuptools", "wheel"] # PEP 508 specifications.
[tool.ruff]
line-length = 120

[tool.ruff.lint]
select = [
"E", # Pycodestyle
"F", # Pyflakes
Expand All @@ -12,12 +13,12 @@ select = [
]
ignore = ["PLR0913"]

[tool.ruff.pylint]
[tool.ruff.lint.pylint]
max-branches = 25
max-returns = 8
max-statements = 80

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "E501"]
"integration_uri.py" = ["E501"] # ARNs are long.
"app.py" = ["E501"] # Doc links are long.
Expand Down

0 comments on commit 4cd3c44

Please sign in to comment.