Skip to content

Commit

Permalink
Update tox and cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
moradology committed May 2, 2022
1 parent 977cc90 commit 7e62410
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
25 changes: 10 additions & 15 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e62410

Please sign in to comment.