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

chore: update ruff params according to warning message #7060

Merged
merged 1 commit into from
May 13, 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 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
Loading