diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 4194ea0..af44edd 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -29,11 +29,6 @@ jobs: python -m pip install --upgrade pip python -m pip install tox codecov pre-commit - # Run pre-commit (only for python-3.7) - - name: run pre-commit - if: matrix.python-version == 3.7 - run: pre-commit run --all-files - # Run tox using the version of Python in `PATH` - name: Run Tox run: tox -e py diff --git a/tox.ini b/tox.ini index 2ff6de5..f0bb71d 100644 --- a/tox.ini +++ b/tox.ini @@ -2,29 +2,24 @@ envlist = py37,py38,py39,py310 [testenv] -extras = - dev -deps = - flake8 - black -; mypy -commands = - python -m pytest --cov stac_pydantic --cov-report xml --cov-report term-missing - flake8 . - black . -; mypy stac_pydantic/ +extras = dev +commands = python -m pytest --cov stac_pydantic --cov-report xml --cov-report term-missing + +[black] +deps = black +commands = black . [flake8] +deps = flake8 exclude = .git,__pycache__,docs/source/conf.py,old,build,dist,.venv,.tox,.idea max-line-length = 88 select = C,E,F,W,B,B950 extend-ignore = E203, E501 +commands = flake8 . [mypy] -no_strict_optional = True -ignore_missing_imports = True -implicit_reexport = True -deps = types-click +deps = mypy, types-click +commands = mypy --no_strict_optional --ignore_missing_imports --implicit_reexport stac_pydantic/ [tool:isort] profile = black