Skip to content

Commit 3661a65

Browse files
chore: Upgrade ruff (#2653)
1 parent 6e43648 commit 3661a65

File tree

3 files changed

+38
-26
lines changed

3 files changed

+38
-26
lines changed

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
sys.path.append(os.path.abspath("./_ext"))
2020
# Insert awswrangler"s path into the system.
2121
sys.path.insert(0, os.path.abspath("../.."))
22-
import awswrangler # noqa: E402
22+
import awswrangler
2323

2424
# -- Project information -----------------------------------------------------
2525

poetry.lock

Lines changed: 29 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ msgpack = "*"
108108
boto3-stubs = {version = "^1.34.29", extras = ["athena", "cleanrooms", "chime", "cloudwatch", "dynamodb", "ec2", "emr", "emr-serverless", "glue", "kms", "lakeformation", "logs", "neptune", "opensearch", "opensearchserverless", "quicksight", "rds", "rds-data", "redshift", "redshift-data", "s3", "secretsmanager", "ssm", "sts", "timestream-query", "timestream-write"]}
109109
doc8 = "^1.0"
110110
mypy = "^1.8"
111-
ruff = "^0.1.14"
111+
ruff = "^0.2.0"
112112

113113
# Test
114114
moto = "^5.0"
@@ -139,9 +139,6 @@ requires = ["poetry-core>=1.0.0"]
139139
build-backend = "poetry.core.masonry.api"
140140

141141
[tool.ruff]
142-
select = ["D", "E", "F", "I", "PL", "RUF100", "W", "FA", "UP", "PYI036"]
143-
ignore = ["E501", "PLR2004", "UP037"]
144-
fixable = ["ALL"]
145142
extend-include = ["*.ipynb"]
146143
exclude = [
147144
".eggs",
@@ -159,16 +156,21 @@ exclude = [
159156
line-length = 120
160157
target-version = "py38"
161158

159+
[tool.ruff.lint]
160+
select = ["D", "E", "F", "I", "PL", "RUF100", "W", "FA", "UP", "PYI036"]
161+
ignore = ["E501", "PLR2004", "UP037"]
162+
fixable = ["ALL"]
163+
162164
[tool.ruff.lint.per-file-ignores]
163165
"docs/*" = ["D"]
164166
"test_infra/*" = ["D"]
165167
"tests/*" = ["PL", "D"]
166168
"tutorials/*" = ["D", "E402", "F401", "F811", "F821"]
167169

168-
[tool.ruff.pydocstyle]
170+
[tool.ruff.lint.pydocstyle]
169171
convention = "numpy"
170172

171-
[tool.ruff.pylint]
173+
[tool.ruff.lint.pylint]
172174
max-args=25 # Maximum number of arguments for function / method.
173175
max-bool-expr=5 # Maximum number of boolean expressions in an if statement (see R0916).
174176
max-branches=15 # Maximum number of branch for function / method body.

0 commit comments

Comments
 (0)