From f56d641a1b8a3a168b34a57a9a5a2bb783ed456c Mon Sep 17 00:00:00 2001 From: "Daniel W. Anner" Date: Thu, 5 Jan 2023 11:27:38 -0500 Subject: [PATCH] Adding dependabot & updating reqirements (#1026) * Added dependabot template * Testing dependabot * Testing dependabot * Added dependabot config. Updated pre-commit config to ignore the dependabot yaml file. Updated requirements. * Added myself to the dependabot assignee list * Fixed missing newline in dependabot config * adding pre-commit to requirements * Update dependabot.yml * Update dependabot.yml * Update dependabot.yml Changed schedule to montly * Modified Actions validation & pre-commit config - Fixed spacing and newline issues in actions validation file - Modified pre-commit config to only scan device-types and module-types, same as the validation action --- .github/dependabot.yml | 14 ++++++++++++++ .github/workflows/validation.yml | 5 +---- .pre-commit-config.yaml | 1 + requirements.txt | 9 +++++---- 4 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..46d6c9e3f --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +--- +version: 2 +updates: + - package-ecosystem: pip + directory: / + schedule: + interval: monthly + time: '02:00' + timezone: America/New_York + labels: + - dependencies + target-branch: master + assignees: + - "danner26" diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index b0bcb2479..c8b287609 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -1,12 +1,9 @@ --- name: Validate definitions - - -on: # yamllint disable-line rule:truthy +on: # yamllint disable-line rule:truthy pull_request: branches: - master - jobs: build: runs-on: ubuntu-latest diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7f468dbdd..5d1a2831a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,5 @@ --- +files: ^(device-types|module-types)/ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.3.0 diff --git a/requirements.txt b/requirements.txt index 7697152b0..7448e2d98 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ -jsonschema==3.2.0 -pytest==5.3.2 -PyYAML==5.4 -yamllint==1.27.1 +jsonschema==4.17.3 +pre-commit==2.21.0 +pytest==7.2.0 +PyYAML==6.0 +yamllint==1.28.0