Changed flake8 to ruff

This commit is contained in:
Kristofers Solo
2023-04-23 18:32:46 +03:00
parent 4dcf8709a2
commit 5b0c5dd244
9 changed files with 29 additions and 111 deletions

View File

@@ -1,25 +0,0 @@
name: Lint
on:
- push
- pull_request
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.10"]
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 mypy flake8
- name: Lint with mypy
run: mypy FOSSDB_web
- name: Lint with flake8
run: flake8 FOSSDB_web

8
.github/workflows/ruff.yml vendored Normal file
View File

@@ -0,0 +1,8 @@
name: Ruff
on: [push, pull_request]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: chartboost/ruff-action@v1

View File

@@ -1,23 +1,18 @@
name: Test
on:
- push
- pull_request
name: Django Test
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.10"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup_python@v2
with:
python-version: ${{ matrix.python-version }}
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with django test
- name: Run tests
run: python manage.py test