Skip to content

Commit

Permalink
Disable ruff rule COM812, which causes undesirable reformats
Browse files Browse the repository at this point in the history
(calling `poe format` once does not suffice when this rule is enabled)

Ref #17
  • Loading branch information
opcode81 committed Jun 20, 2024
1 parent 83b70ff commit f53c18c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions {{cookiecutter.project_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ select = [
"ASYNC", "B", "C4", "C90", "COM", "D", "DTZ", "E", "F", "FLY", "G", "I", "ISC", "PIE", "PLC", "PLE", "PLW", "RET", "RUF", "RSE", "SIM", "TID", "UP", "W", "YTT",
]
ignore = [
"COM812", # requires trailing commas and can cause undesirable reformats when calling `poe format` multiple times (see https://github.com/appliedAI-Initiative/pymetrius/issues/17)
"E501", # line too long. black does a good enough job
"E741", # variable names like "l". this isn't a huge problem
"B008", # do not perform function calls in argument defaults. we do this sometimes
Expand Down

0 comments on commit f53c18c

Please sign in to comment.