From a32a4b1455617a6826593c942119430d941166ec Mon Sep 17 00:00:00 2001 From: Miguel Cardenas Date: Sun, 28 Apr 2024 12:03:37 -0400 Subject: [PATCH] feat: Add workflow to check commits --- .github/workflows/pr-conventional-commits.yml | 15 +++++++++++++ .pylintrc | 21 ++++++++----------- 2 files changed, 24 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/pr-conventional-commits.yml diff --git a/.github/workflows/pr-conventional-commits.yml b/.github/workflows/pr-conventional-commits.yml new file mode 100644 index 0000000..9427de9 --- /dev/null +++ b/.github/workflows/pr-conventional-commits.yml @@ -0,0 +1,15 @@ +name: PR Conventional Commit Validation + +on: + pull_request: + types: [opened, synchronize, reopened, edited] + +jobs: + validate-pr-title: + runs-on: ubuntu-latest + steps: + - name: PR Conventional Commit Validation + uses: ytanikin/PRConventionalCommits@1.1.0 + with: + task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert"]' + add_label: 'false' diff --git a/.pylintrc b/.pylintrc index 2266166..0e330a5 100644 --- a/.pylintrc +++ b/.pylintrc @@ -6,26 +6,23 @@ suggestion-mode=yes [MESSAGES CONTROL] disable= + arguments-differ, attribute-defined-outside-init, - invalid-name, - no-else-return, broad-exception-caught, + consider-using-assignment-expr, + format, + invalid-name, missing-docstring, + no-else-return, + possibly-used-before-assignment, protected-access, + redefined-builtin, + redefined-outer-name, too-few-public-methods, - too-many-function-args, too-many-arguments, + too-many-function-args, unexpected-keyword-arg, unknown-option-value, - redefined-builtin, - redefined-outer-name, - arguments-differ, - # handled by black - format, - # We anticipate #3512 where it will become optional - fixme, - consider-using-assignment-expr, - possibly-used-before-assignment, [BASIC]