diff --git a/.github/workflows/update_hosts.yml b/.github/workflows/update_hosts.yml index 36c874f..e9f867c 100644 --- a/.github/workflows/update_hosts.yml +++ b/.github/workflows/update_hosts.yml @@ -16,6 +16,16 @@ permissions: contents: write jobs: + lint: + runs-on: ubuntu-latest + strategy: + matrix: + linter: [flake8, pylint, ruff, mypy, pytype, pyright, fixit, pyre] + steps: + - uses: advanced-security/python-lint-code-scanning-action@v1 + with: + linter: ${{ matrix.linter }} + update-hosts: runs-on: ubuntu-latest @@ -40,15 +50,6 @@ jobs: python -m pip install --upgrade pip sudo pip install -r requirements.txt - - name: Check files using the black formatter - uses: datadog/action-py-black-formatter@v2.1 - with: - check_mode: "true" - print_diff_mode: "true" - - - - - name: Run hosts update script1 run: | sudo python3 setHosts.py