Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
serengil committed Jan 29, 2023
1 parent 24cc717 commit 7a978d2
Show file tree
Hide file tree
Showing 33 changed files with 5,733 additions and 3,515 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Tests

on:
push:
paths:
- '.github/workflows/lint.yml'
- 'deepface/**'
- 'tests/**'
- 'api/**'
- 'requirements.txt'
- '.gitignore'
- 'setup.py'
pull_request:
paths:
- '.github/workflows/lint.yml'
- 'deepface/**'
- 'tests/**'
- 'api/**'
- 'requirements.txt'
- '.gitignore'
- 'setup.py'

jobs:
linting-tests-ubuntu-latest:

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

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
- name: Lint tests with pylint
run: |
pylint --fail-under=10 deepface/
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ dist/
Pipfile
Pipfile.lock
.mypy_cache/
.vscode/
.idea/
deepface.egg-info/
deepface/__pycache__/*
Expand Down
Loading

0 comments on commit 7a978d2

Please sign in to comment.