Add black to CI (#1101)

* Add black to CI

* Rename linter step
pull/1103/head
Gulshan Singh 3 years ago committed by GitHub
parent 015888684b
commit d8b589d823
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,9 +21,11 @@ jobs:
- name: Install linters
run: |
pip install isort
pip install black
- name: Run tests
- name: Run linters
run: |
git diff-index --quiet HEAD -- pwndbg tests
isort --check-only --diff pwndbg tests
python3 -m py_compile $(git ls-files 'pwndbg/*.py')
black --diff --check pwndbg tests
python3 -m py_compile $(git ls-files 'pwndbg/*.py')

@ -1,3 +1,4 @@
black
coverage==6.4.4; python_version >= '3.7'
coverage==6.2; python_version < '3.7'
pytest==7.1.2; python_version >= '3.7'

Loading…
Cancel
Save