Set up black and pylint for Python #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ESLint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Install ESLint and plugins | |
run: npm install eslint babel-eslint eslint-plugin-import | |
- name: Create ESLint config | |
run: echo module.exports = {} > .eslintrc.js | |
- name: Run ESLint | |
run: npx eslint . |