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

build: Taskfile improvements #2032

Merged
merged 1 commit into from Jul 18, 2022

Conversation

aucampia
Copy link
Member

@aucampia aucampia commented Jul 17, 2022

Summary of changes

  • Added individual tasks for black, isort and mypy to make it easier to
    run these directly.
  • Change flag variables to be JSON based so that they can be disabled
    with "false", this makes it easier to work with tooling that does not
    distinguish between empty and unset environment variables.
  • Add a venv:run target to make it easier to run things inside the
    venv, e.g. task venv:run -- pip install lxml.
  • Change pytest invocation to use the pytest script instead of using
    python -m pytest as the latter does some things which are not
    desirable.

Checklist

  • Checked that there aren't other open pull requests for
    the same change.
  • Checked that all tests and type checking passes.
  • Considered granting push permissions to the PR branch,
    so maintainers can fix minor issues and keep your PR up to date.

@aucampia aucampia force-pushed the iwana-20220717T1633-taskfile branch 4 times, most recently from 4d4e32c to c45070e Compare July 17, 2022 16:29
@aucampia aucampia marked this pull request as ready for review July 17, 2022 16:41
@coveralls
Copy link

coveralls commented Jul 17, 2022

Coverage Status

Coverage remained the same at 90.446% when pulling 6553986 on aucampia:iwana-20220717T1633-taskfile into 0d413fd on RDFLib:master.

@aucampia aucampia force-pushed the iwana-20220717T1633-taskfile branch from c45070e to bc285a3 Compare July 18, 2022 04:54
@aucampia aucampia requested a review from a team July 18, 2022 04:55
@aucampia
Copy link
Member Author

I'm going to update this to also change how pytest is invoked to address this comment: #1519 (comment)

@aucampia aucampia marked this pull request as draft July 18, 2022 12:43
@aucampia aucampia force-pushed the iwana-20220717T1633-taskfile branch from bc285a3 to 33b1fb1 Compare July 18, 2022 12:45
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

- Added individual tasks for black, isort and mypy to make it easier to
  run these directly.
- Change flag variables to be JSON based so that they can be disabled
  with "false", this makes it easier to work with tooling that does not
  distinguish between empty and unset environment variables.
- Add a `venv:run` target to make it easier to run things inside the
  venv, e.g. `task venv:run -- pip install lxml`.
- Change pytest invocation to use the pytest script instead of using
  `python -m pytest` as the latter does some things which are not
  desirable.
@aucampia aucampia force-pushed the iwana-20220717T1633-taskfile branch from 4ff6b11 to 6553986 Compare July 18, 2022 15:10
@aucampia aucampia merged commit fda98ec into RDFLib:master Jul 18, 2022
@aucampia aucampia deleted the iwana-20220717T1633-taskfile branch July 21, 2022 21:28
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

Successfully merging this pull request may close these issues.

None yet

2 participants