Commit db118b6e authored by Olivier's avatar Olivier

use ruff instead of flake8 for liting in CI

parent 5b4e4840
......@@ -29,15 +29,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest mypy
python -m pip install flake8 pytest mypy ruff
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f dev_requirements.txt ]; then pip install -r dev_requirements.txt; fi
- name: Lint with flake8
- name: Lint with ruff and mypy
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --statistics
ruff check .
# - name: Lint with mypy
# run: |
python -m pip install types-aiofiles types-python-dateutil types-pytz
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment