From c89abd5c201db7be9f9533ef95c8521da83ac2d9 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 15 Dec 2021 18:09:43 +0100 Subject: [PATCH] simplify github workflows --- .github/workflows/python-lint.yml | 37 ---------------------- .github/workflows/static-code-analysis.yml | 25 --------------- 2 files changed, 62 deletions(-) delete mode 100644 .github/workflows/python-lint.yml delete mode 100644 .github/workflows/static-code-analysis.yml diff --git a/.github/workflows/python-lint.yml b/.github/workflows/python-lint.yml deleted file mode 100644 index 71cb6938..00000000 --- a/.github/workflows/python-lint.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Python Lint - -on: - push: - paths: - - "**.py" - -jobs: - black: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - with: - python-version: "3.x" - architecture: x64 - - - run: pip install black - - run: black --check . - - flake8: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - with: - python-version: "3.x" - architecture: x64 - - - run: pip install flake8 - - # E203: https://www.flake8rules.com/rules/E203.html - Whitespace before ':' - # E501: https://www.flake8rules.com/rules/E501.html - Line too long - # W503: https://www.flake8rules.com/rules/W503.html - Line break occurred before a binary operator - # W605: https://www.flake8rules.com/rules/W605.html - Invalid escape sequence - # E722: https://www.flake8rules.com/rules/E722.html - Do not use bare except, specify exception instead - - run: flake8 --max-line-length 88 --ignore E203,E501,W503,W605,E722 diff --git a/.github/workflows/static-code-analysis.yml b/.github/workflows/static-code-analysis.yml deleted file mode 100644 index 22bd6ac9..00000000 --- a/.github/workflows/static-code-analysis.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Static Code Analysis - -on: [pull_request] - -jobs: - build: - runs-on: ubuntu-latest - - strategy: - matrix: - package: [dashboard, dnslink-api, handshake-api, health-check, website] - fail-fast: false - - defaults: - run: - working-directory: packages/${{ matrix.package }} - - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: 16.x - - - run: yarn - - run: yarn prettier --check .