diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..fb466764 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,41 @@ +name: lint + +on: + push: + +jobs: +# pylint: +# runs-on: ubuntu-latest +# +# steps: +# - uses: actions/checkout@v3 +# - name: Set up Python 3.10 +# uses: actions/setup-python@v5 +# with: +# python-version: '3.10' +# - name: Install dependencies +# run: | +# python -m pip install --upgrade pip +# pip install -r requirements_tests.txt +# pip install pylint +# - name: Analysing the code with pylint +# run: | +# pylint `ls -R|grep .py$|xargs` + + flake8: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.10 + uses: actions/setup-python@v5 + with: + python-version: '3.10' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements_tests.txt + pip install flake8 + - name: Analysing the code with flake8 + run: | + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics \ No newline at end of file diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml deleted file mode 100644 index 9891ca6a..00000000 --- a/.github/workflows/pylint.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Pylint - -on: [push] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.8 - uses: actions/setup-python@v2 - with: - python-version: 3.8 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pylint - - name: Analysing the code with pylint - run: | - pylint `ls -R|grep .py$|xargs`