From 6ad1ad89798005c9dea3406a0a42b2c01cce7159 Mon Sep 17 00:00:00 2001 From: GrandMoff100 Date: Wed, 23 Feb 2022 14:56:20 +0000 Subject: [PATCH 1/2] Added paths argument to workflow trigger event --- .github/workflows/code_rules.yml | 2 ++ .github/workflows/codeql-analysis.yml | 2 ++ TODO.md | 8 +++++--- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/code_rules.yml b/.github/workflows/code_rules.yml index f3f69aff..b3263492 100644 --- a/.github/workflows/code_rules.yml +++ b/.github/workflows/code_rules.yml @@ -2,6 +2,8 @@ name: Code Standards on: push: # Comment this line to trigger action only on pull-requests (not recommended if you don't pay for GH Actions) + paths: + - '**.py' pull_request: branches: - master diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e45157da..48cf4de8 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -14,6 +14,8 @@ name: "CodeQL" on: push: branches: [dev] + paths: + - '**.py' pull_request: # The branches below must be a subset of the branches above branches: [dev] diff --git a/TODO.md b/TODO.md index 42ce6d1a..55ebcdde 100644 --- a/TODO.md +++ b/TODO.md @@ -1,18 +1,20 @@ # TODOs (A checklist of sorts) ## Code Features + - [ ] Add Testing Suite/Workflow the runs Home Assistant Core to test library. -- [ ] Clean up Model `repr` methods with disabling model field `repr`s. +- [X] Clean up Model `repr` methods with disabling model field `repr`s. ## Code Bugs + None yet? ## Maintenance -- [ ] Initialize project Milestones and Wiki. -- [ ] Add Workflow that issues labeled `bug` and `feature` into their respective sections in TODO.md. + - [ ] Fix workflows to only run when python paths are modified. ## Documentation + - [ ] Add runnable Code Examples. - [ ] Document project scripts. - [ ] Document branch naming scheme (i.e. `feature/`, `maintenance/`, `bug/`, `docs/`) From 8ccbdf1016fbb6dccfa1da31f15857c59697a1d0 Mon Sep 17 00:00:00 2001 From: GrandMoff100 Date: Wed, 23 Feb 2022 14:58:32 +0000 Subject: [PATCH 2/2] [MegaLinter] Apply linters fixes --- .github/workflows/code_rules.yml | 2 +- .github/workflows/codeql-analysis.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code_rules.yml b/.github/workflows/code_rules.yml index b3263492..52a26604 100644 --- a/.github/workflows/code_rules.yml +++ b/.github/workflows/code_rules.yml @@ -3,7 +3,7 @@ name: Code Standards on: push: # Comment this line to trigger action only on pull-requests (not recommended if you don't pay for GH Actions) paths: - - '**.py' + - "**.py" pull_request: branches: - master diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 48cf4de8..6bd877de 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -15,7 +15,7 @@ on: push: branches: [dev] paths: - - '**.py' + - "**.py" pull_request: # The branches below must be a subset of the branches above branches: [dev]