-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a config file for test_codestyle.py (#594)
pycodestyle supports reading config options from a file. This change adds such a file and modifies test_codestyle.py to reference it. Removes ignoring of E402 (module level import not at top of file) because we don't violate it now. Sets the line length to 99, but continues to ignore E501 (line too long) because we have a lot of those.
- Loading branch information
1 parent
f8a9b5b
commit 3358d3f
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[pycodestyle] | ||
; Pycodestyle config options are: | ||
; exclude, filename, select, ignore, max-line-length, max-doc-length, | ||
; hang-closing, count, format, quiet, show-pep8, show-source, | ||
; statistics, verbose | ||
|
||
; Style violations to ignore. | ||
; | ||
; E501: line too long (82 > 79 characters) | ||
; | ||
; For the full list, see: | ||
; https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes | ||
|
||
ignore = E501 | ||
|
||
max-line-length = 99 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters