diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 3ffd40a..0c684b8 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -1,6 +1,3 @@ -# This workflow will install Python dependencies, run tests and lint with a variety of Python versions -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - name: Python package on: @@ -15,7 +12,8 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9] + #python-version: [3.7, 3.8, 3.9] + python-version: [3.9] steps: - uses: actions/checkout@v2 @@ -26,14 +24,10 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install flake8 pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Lint with flake8 - 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 --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest - run: | - pytest + python -m pip install pipenv pytest + pipenv install --dev + - name: Black Check + uses: jpetrucciani/black-check@20.8b1 +# - name: Test with pytest +# run: | +# pytest diff --git a/Pipfile b/Pipfile index 45428de..562aca3 100644 --- a/Pipfile +++ b/Pipfile @@ -11,7 +11,7 @@ colorama = "*" pyinstaller = "*" [requires] -python_version = "3.7" +python_version = "3.9" [scripts] build = "pyinstaller pycine/cli/pfs_meta.py --onefile" diff --git a/pyproject.toml b/pyproject.toml index 55ec8d7..59d1bf5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,2 +1,8 @@ [tool.black] line-length = 120 +exclude = ''' +/( + pycine/cine.py + | pycine/linLUT.py +) +'''