From bd407a6951c31fe263d75ed15478b983bdcc74ce Mon Sep 17 00:00:00 2001 From: klein panic Date: Fri, 13 Dec 2024 02:56:45 -0500 Subject: [PATCH] fixing flake8 more --- .flake8 | 13 +++++++++++-- .github/workflows/lint.yml | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.flake8 b/.flake8 index b309701..bf937cb 100644 --- a/.flake8 +++ b/.flake8 @@ -8,7 +8,7 @@ exclude = .git __pycache__ -# Error codes to ignore +# flake8 error codes to ignore # Whitespace before ':', compatible with Black formatting # Line break before binary operator, compatible with Black formatting # Line length (use max-line-length instead) @@ -17,11 +17,15 @@ exclude = # Trailing whitespace # No newline at end of file # 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 # Ambiguous variable name (e.g., l, O) # Block comment should start with '# ' # 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 = E203 W503 @@ -36,3 +40,8 @@ ignore = E741 E265 E722 + F401 + W391 + E261 + E128 + diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9f35247..e400ad7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Python uses: actions/setup-python@v4