Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: top level test and command separation #97

Open
Kyle-Verhoog opened this issue Nov 26, 2020 · 0 comments
Open

Proposal: top level test and command separation #97

Kyle-Verhoog opened this issue Nov 26, 2020 · 0 comments

Comments

@Kyle-Verhoog
Copy link
Member

In order to achieve command running and test running separation a riotfile.py like the following would be required:

from riot import Venv

venv = Venv(
  venvs=[
     Venv(
         # Define tests
     ),
     Venv(
         skip_install=True,
         print_summary=True,
         venvs=[
             # Define mypy, black, etc
         ]
     ),
  ]
)

This proposal is for there to be syntactic sugar for this with something like the following:

from riot import Venv

# Have summary printed after running
# Builds local package
tests = [
   Venv(
       name="pytest",
       # ...
   )
]

# Don't have summaries printed
# Don't build local package
commands = [
  Venv(
    name="mypy",
    # ...
  )
] 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant