From 956c319276bd1f76cad76ec38a3f7184532351de Mon Sep 17 00:00:00 2001 From: Justin Lyons Date: Tue, 31 Jan 2023 12:45:50 -0500 Subject: [PATCH 1/3] Ran yamlfix . against repo --- .github/workflows/build.yml | 5 +---- .github/workflows/install.yml | 1 - .github/workflows/tests.yml | 2 -- .github/workflows/update.yml | 1 - .pre-commit-config.yaml | 3 +-- mkdocs.yml | 6 ------ 6 files changed, 2 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b7fcda2..4375862 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,12 +1,9 @@ --- name: Build - on: # yamllint disable-line rule:truthy push: - branches: - - main + branches: [main] workflow_dispatch: - jobs: PyPI: name: Build and publish Python distributions to TestPyPI diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index 9414970..37c797d 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -4,7 +4,6 @@ on: # yamllint disable-line rule:truthy schedule: - cron: 21 08 * * * workflow_dispatch: - jobs: Install: runs-on: ubuntu-latest diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b752b58..c49257b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,13 +1,11 @@ --- name: Tests - on: # yamllint disable-line rule:truthy push: branches: [main] pull_request: types: [opened, synchronize] workflow_dispatch: - jobs: Tests: runs-on: ubuntu-latest diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index b652e58..df1b6b4 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -4,7 +4,6 @@ on: # yamllint disable-line rule:truthy schedule: - cron: 11 7 * * * workflow_dispatch: - jobs: Update: runs-on: ubuntu-latest diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c6590ec..7279f96 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,8 +19,7 @@ repos: - name: Run mypy static analysis tool id: mypy files: src - additional_dependencies: - - pydantic + additional_dependencies: [pydantic] args: - --no-warn-unused-ignores - --ignore-missing-imports diff --git a/mkdocs.yml b/mkdocs.yml index 95dfe0e..4ac27d0 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -7,7 +7,6 @@ nav: - Editor Integration: editor_integration.md - Reference: reference.md - Contributing: contributing.md - plugins: - search - mkdocstrings: @@ -24,7 +23,6 @@ plugins: - minify: minify_html: true - section-index - markdown_extensions: - abbr - def_list @@ -58,7 +56,6 @@ markdown_extensions: - pymdownx.tasklist: custom_checkbox: true - pymdownx.tilde - theme: name: material custom_dir: docs/theme @@ -68,12 +65,9 @@ theme: - navigation.footer - navigation.top - content.code.annotate - palette: primary: blue grey accent: light blue - extra_css: [stylesheets/extra.css, stylesheets/links.css] - repo_name: lyz-code/yamlfix repo_url: https://github.com/lyz-code/yamlfix From b88ecfe8884b6ba2fe1cff8ad907adb6585ecd97 Mon Sep 17 00:00:00 2001 From: Justin Lyons Date: Tue, 31 Jan 2023 12:51:00 -0500 Subject: [PATCH 2/3] Adding yamllint to pipelines --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 4443f96..59f142c 100644 --- a/Makefile +++ b/Makefile @@ -58,6 +58,7 @@ lint: pdm run flakeheaven lint src/ tests/ $(isort) --check-only --df $(black) --check --diff + $(yamllint) . @echo "" From 958e3819ca274c6e1d217380efd88b89cfe5bed8 Mon Sep 17 00:00:00 2001 From: Justin Lyons Date: Tue, 31 Jan 2023 13:10:52 -0500 Subject: [PATCH 3/3] Fix yamllint --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 59f142c..139aa2c 100644 --- a/Makefile +++ b/Makefile @@ -58,7 +58,7 @@ lint: pdm run flakeheaven lint src/ tests/ $(isort) --check-only --df $(black) --check --diff - $(yamllint) . + yamllint . @echo ""