Skip to content

Commit

Permalink
Minor updates to build env (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
flamusdiu authored Sep 4, 2023
1 parent 296f744 commit 6a028e5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
8 changes: 1 addition & 7 deletions .devcontainer/pipx-install.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#!/bin/sh

packages="poetry pre-commit tox isort sphinx ruff pyright"
packages="poetry pre-commit tox isort ruff pyright"

types_inject="types-PyYAML types-Jinja2 types-pillow"
pytest_inject="pyfakefs pytest-cache pytest-cov pytest-dependency pytest-mock tqdm requests"
sphinx_inject="sphinx-rtd-theme sphinxcontrib-images sphinxcontrib-mermaid sphinxcontrib-napoleon"

install() {
for p in $1; do
Expand All @@ -20,7 +18,3 @@ done

install "${packages}"
inject ruff "${types_inject}"
inject pytest "${pytest_inject}"
inject sphinx "${sphinx_inject}"

pip install --user sphinx-rtd-theme docutils
22 changes: 16 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
[tox]
min_version = 4.0
isolated_build = true
env_list =
py310
docs
type

[testenv]
extras =
lint
tests
commands =
poetry install -v
poetry run pytest tests/
whitelist_externals = poetry
poetry run pytest tests
allowlist_externals = poetry

[testenv:lint]
extras =
lint
commands =
black --safe src tests
isort src tests
flakeheaven lint src tests
ruff --fix src
black src

[testenv:type]
extras =
exe
commands =
mypy src

0 comments on commit 6a028e5

Please sign in to comment.