Skip to content

Commit

Permalink
[BUILD] Disable W503 in flake8 config. (triton-lang#2555)
Browse files Browse the repository at this point in the history
It seems that by default, flake8 warns on both "linebreak occurred
before
binary operator" (W503) and "linebreak occurred *after* binary operator"
(W504).  You...kind of have to pick one of these.  :)

According to the docs, W503 is deprecated, so we disable that one.
https://www.flake8rules.com/rules/W503.html
  • Loading branch information
jlebar authored Oct 30, 2023
1 parent 1ea5c0f commit f7be5f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[flake8]
ignore = E501,E701,E731
# W503 (linebreak occurred before binary operator) seems to be enabled by
# default, even though it goes against pep8 and is incompatible with W504
# (linebreak occurred *after* binary operator). Disable it.
ignore = E501,E701,E731,W503

0 comments on commit f7be5f8

Please sign in to comment.