From da290dfffcbcbc61d854971537a256f77268e1b9 Mon Sep 17 00:00:00 2001 From: Evgeny Prilepin Date: Mon, 12 Jun 2023 22:57:52 +0100 Subject: [PATCH] Update dependencies, flake8 and CI workflow --- .flake8 | 5 ++++- .github/workflows/main.yaml | 8 ++++---- setup.py | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.flake8 b/.flake8 index 94385e5..c724323 100644 --- a/.flake8 +++ b/.flake8 @@ -1,3 +1,6 @@ [flake8] max-line-length = 120 -format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s +exclude = + .venv + docs + build diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 65f10fe..f9c9dac 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -28,17 +28,17 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip setuptools wheel - python -m pip install flake8 flake8-colors python -m pip install -e .[tests] - name: Unit Tests - run: pytest --color=yes --cov=csaps --cov-report=term + run: pytest -v --color=yes --cov=csaps --cov-report=term --cov-report=lcov:coverage.info - name: Coveralls if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.11' }} - uses: AndreMiras/coveralls-python-action@develop + uses: coverallsapp/github-action@v2 with: - parallel: false + format: lcov + file: coverage.info - name: flake8 Static Analysis if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.11' }} diff --git a/setup.py b/setup.py index f2e94ed..19b87e5 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ def _get_long_description(): ], extras_require={ 'docs': ['sphinx >=3.0.0, <7', 'matplotlib >=3.1', 'numpydoc', 'm2r2'], - 'tests': ['pytest', 'coverage <8', 'pytest-cov', 'coveralls'], + 'tests': ['pytest', 'coverage <8', 'pytest-cov', 'coveralls', 'flake8'], }, package_data={"csaps": ["py.typed"]}, url='https://github.com/espdev/csaps',