From 93586110f2ebdc4a588014b908d2d842baebb452 Mon Sep 17 00:00:00 2001 From: Peter Adams <63288215+PeterAdams-A@users.noreply.github.com> Date: Tue, 29 Oct 2024 11:01:43 +0000 Subject: [PATCH] Enable python lint in CI (#474) Motivation: More checking is better Modifications: Enable and configure flake8 Result: More CI checks --- .flake8 | 12 ++++++++++++ .github/workflows/pull_request.yml | 2 -- .licenseignore | 1 + 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 .flake8 diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..41b4e26 --- /dev/null +++ b/.flake8 @@ -0,0 +1,12 @@ +[flake8] + +ignore = + # These are needed to make our license headers pass the linting + E265, + E266, + +# 10% larger than the standard 80 character limit. Conforms to the black +# standard and Bugbear's B950. +max-line-length = 88 +exclude = + Tests/hpack-test-case diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index bcfd7ca..9c2e2a8 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -11,9 +11,7 @@ jobs: with: license_header_check_project_name: "SwiftNIO" format_check_enabled: false - unacceptable_language_check_enabled: true shell_check_enabled: false - python_lint_check_enabled: false unit-tests: name: Unit tests diff --git a/.licenseignore b/.licenseignore index 6688dca..09fef5a 100644 --- a/.licenseignore +++ b/.licenseignore @@ -44,3 +44,4 @@ dev/update-benchmark-thresholds .gitmodules FuzzTesting/FailCases/* Tests/hpack-test-case/* +.flake8