fixing flake8 more

This commit is contained in:
klein panic
2024-12-13 02:56:45 -05:00
parent 74ab7cbe52
commit bd407a6951
2 changed files with 12 additions and 3 deletions

13
.flake8
View File

@@ -8,7 +8,7 @@ exclude =
.git .git
__pycache__ __pycache__
# Error codes to ignore # flake8 error codes to ignore
# Whitespace before ':', compatible with Black formatting # Whitespace before ':', compatible with Black formatting
# Line break before binary operator, compatible with Black formatting # Line break before binary operator, compatible with Black formatting
# Line length (use max-line-length instead) # Line length (use max-line-length instead)
@@ -17,11 +17,15 @@ exclude =
# Trailing whitespace # Trailing whitespace
# No newline at end of file # No newline at end of file
# Blank line contains whitespace # Blank line contains whitespace
# Expected 2 blank lines, found 1 (can make code more compact if ignored) # Expected 2 blank lines, found 1
# Expected 2 blank lines after class or function definition # Expected 2 blank lines after class or function definition
# Ambiguous variable name (e.g., l, O) # Ambiguous variable name (e.g., l, O)
# Block comment should start with '# ' # Block comment should start with '# '
# Do not use bare 'except' # Do not use bare 'except'
# Module imported but unused
# Blank line at end of file
# At least two spaces before inline comment
# Continuation line under-indented for visual indent
ignore = ignore =
E203 E203
W503 W503
@@ -36,3 +40,8 @@ ignore =
E741 E741
E265 E265
E722 E722
F401
W391
E261
E128

View File

@@ -14,7 +14,7 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v4