-
Notifications
You must be signed in to change notification settings - Fork 0
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
Nox Sessions #175
Nox Sessions #175
Conversation
- added `noxfile.py` to automate linting, testing, coverage, and doc building - moved `requirements/core.txt` to `requirements.txt` - update optional-dependencies within `pyproject.toml` to decompose dev dependency group - added `compile_readme_and_arrange_docs.py` to sphinx `Makefile` - added pypandoc as dependency to make pandoc python package installable - edited `compile_readme_and_arrange_docs.py` and `sphinx/Makefile` to use pypandoc - added `docs/pandoc` where pypandoc install pandoc to `.gitignore` - added pandoc pathing variables to `sphinx/conf.py`
- Updated Issue and PR templates - Updated `CONTRIBUTING.md` to latest recommended usage - Linting changes - Added `.coveragerc` to configure coverage report - Added `pytest` options to `pyproject.toml` - Added filter warnings to pytest options. - Modified `tabulation.py` for `DeprecationWarning` with use of `.drop()` - Future TODO: add version bump nox session - Future TODO: use nox in GH actions? - Future TODO: increase coverage to 95%+. - Update `CONTRIBUTING.MD`, `PULL_REQUEST_TEMPLATE.md` ,and `.coveragerc` to reflect this requirement.
- removed `MIN_COVERAGE_PERC` within `noxfile.py`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues aside from my one comment. Feel free to address it or not depending on your answer.
|
||
|
||
''' | ||
@nox.session(python=LINTING_VERSION, tags=["linting"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to leave in this commented function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went ahead and added a comment noting this code block as a PLACEHOLDER
for future work.
This PR implements nox sessions to automate pre-commit hooks (linting), tests, coverage, and doc building. It closes #172.
Additions
.coveragerc
to configure coverage reportpytest
options topyproject.toml
as to just usepytest
to run memray, coverage, etcnoxfile.py
to automate linting, testing, coverage, and doc buildingcompile_readme_and_arrange_docs.py
to sphinxMakefile
docs/pandoc
where pypandoc install pandoc to.gitignore
sphinx/conf.py
Removals
Changes
compile_readme_and_arrange_docs.py
andsphinx/Makefile
to use pypandocrequirements/core.txt
torequirements.txt
pyproject.toml
to decompose dev dependency groupCONTRIBUTING.md
to latest recommended usagetabulation.py
forDeprecationWarning
with use of.drop()
MIN_COVERAGE_PERC = 5
due to nox and gh actions coverage issueTesting
Todos
pyright
static type check (or similiar) to project. Then a nox sesssion and updateCONTRIBUTING.MD
.setup.cfg
contents topyproject.toml
. Consolidate any other configurations topyproject.toml
.config.py
is needed or if it can moved withinsrc/gval
to be used elsewhere.sphinx/conf.py
ordocs/compile_readme_and_arrange_docs.py
.coveragerc
to 90-95 once completeChecklist