Skip to content

Commit

Permalink
[CodeStyle] update ruff config with # style to reduce conflicts (Pa…
Browse files Browse the repository at this point in the history
…ddlePaddle#52019)

* [CodeStyle] update ruff config with `#` style to reduce conflicts

* revert C403-C406

* remove B905; test=document_fix
  • Loading branch information
SigureMo authored Mar 23, 2023
1 parent 2bf0d1c commit 2142326
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,21 @@ select = [
"C408",
"C409",
"C410",

# "C411",
# "C413",
# "C414",
# "C415",
# "C416",
# "C417",

# Pyupgrade
"UP001",
"UP003",
"UP004",
"UP005",
"UP007",
"UP008",
# "UP009",
"UP010",
"UP011",
"UP012",
Expand All @@ -59,20 +66,55 @@ select = [
"UP021",
"UP022",
"UP023",
# "UP024",
"UP025",
"UP026",
# "UP027",
# "UP028",
"UP029",
# "UP030",
# "UP031",
# "UP032",
"UP033",
# "UP034",
"UP035",
"UP036",

# NumPy-specific rules
"NPY001",

# Bugbear
"B002",
"B003",
# "B004",
# "B005",
# "B006",
# "B007",
# "B008",
"B009",
"B010",
"B011",
"B012",
"B013",
"B014",
# "B015",
# "B016",
# "B017",
"B018",
"B019",
# "B020",
"B021",
"B022",
# "B023",
# "B024",
"B025",
# "B026",
# "B027",
# "B028",
"B029",
# "B030",
"B032",
# "B904",
]
unfixable = [
"NPY001"
Expand Down

0 comments on commit 2142326

Please sign in to comment.