Skip to content

Commit

Permalink
feature: support pylint (#62)
Browse files Browse the repository at this point in the history
* feature: support pylint

* fix

* feature: add badge and rm gitee mirror
  • Loading branch information
cnstark authored Aug 17, 2022
1 parent 7d82913 commit 20668cd
Show file tree
Hide file tree
Showing 23 changed files with 653 additions and 134 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/git-mirror.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: PyLint

env:
FAIL_UNDER: "9.9"

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
pip install torch==1.9.1+cpu torchvision==0.10.1+cpu torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html
pip install -r requirements.txt
- name: Lint
run: |
pylint --fail-under=${FAIL_UNDER} easytorch examples tests setup.py
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
__pycache__
.vscode
.idea

/build
Expand Down
Loading

0 comments on commit 20668cd

Please sign in to comment.