-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docs for "add_additional_resource" and other fixes (#233)
* ci: add ROOT v6.28 and Python v3.11 to test matrix * docs: add "Adding resource links or files" etc. * Add hepdata_lib.c_file_reader and hepdata_lib.helpers modules. * Pin Sphinx<7 since docs fail to be built with Sphinx v7. * Replace m2r2 with sphinx-mdinclude to avoid Mistune conflict. * Replace deprecated "python setup.py test" with "pytest tests". * Add section to "Developer information" about building docs. * Add sections to "Usage" on "Adding resource links or files". * Mention that venv can be used instead of virtualenv/virtualenvwrapper. * examples: use add_additional_resource in notebooks * hepdata_lib: add "type" to add_additional_resource * Allow for type="HistFactory" to be passed as an additional argument. * Extend test_submission.py to test the additional "type" argument. * Add newlines to docstring of round_value_and_uncertainty for Sphinx. * .gitignore: add files output by example notebooks * .readthedocs.yml: install hepdata_lib package * Installation needed to build the module index. * Add "fail_on_warning: true" to avoid building broken docs. * README.md: fix links to Jupyter notebooks * Links to Jupyter notebooks previously broken on "Read the Docs". * Binder links need to be given on a separate line to work properly. * Add link to "Read the Docs" so it appears on main GitHub repo page. * setup.py: add extras_require w/ test requirements * Needed to install test dependencies with: pip install -e ".[test]" * Remove deprecated "setup_requires" and "tests_require". * Add Python v3.11 to "Classifiers". * ci: remove Python v3.11 from test matrix * Python v3.11 incompatible with pylint v2.9.6 (installs wrapt v1.12.1). * Add upper pin python_requires='>=3.6,<3.11' in setup.py. * Use Python v3.10 in "Read the Docs" configuration file. * docs: add "Analysing the code" section on Pylint * Change "type" to "file_type" in argument of add_additional_resource. * Disable some messages from Pylint when run on my local installation. * hepdata_lib: add type of new "file_type" argument * README.mb: fix Zenodo badge & give Python versions * setup.py: remove upper bound on python_requires * docs: reinstate SSH URL for "git clone" * Also link to the GitHub docs for both HTTPS URLs and SSH URLs. * ci: add Python 3.11 for tests but skip pylint step * The pylint step can be added back in after #234 is resolved. * Revert "ci: add Python 3.11 for tests but skip pylint step" This reverts commit 77cc768. The "Run pytest" step of the CI also fails with Python 3.11. * ci/docs: rename master to main and improve docs * Renamed 'master' branch to 'main' as with other HEPData repositories. * Upgrade actions in GitHub Actions workflows to close Dependabot PRs. * Revert to an SSH URL for main "git clone" with HTTPS URL in text. * Remove recommendation to use virtualenv/virtualenvwrapper not 'venv'. * pylint: remove 'disable-msg' and fix imports * Remove 'disable-msg' comments introduced in commit dfa0a89. * Add empty "__init__.py" file to tests/ directory. * Add 'math' and 'array' modules to extension-pkg-whitelist in pylintrc. * test_utilities.py needs to be a relative import after hepdata_lib. * With these changes, pylint now gives 10.00/10 on my local setup. * docs: tweak "Further examples" etc. * Tweak "Further examples" so Binder on same line as text on GitHub. * Remove pin on docutils==0.19, as not needed in recent Sphinx versions. * Fix a copy-and-paste typo in setup.rst. * docs: correct link to Python venv module
- Loading branch information
1 parent
9330eb9
commit 8dcf6a1
Showing
32 changed files
with
391 additions
and
295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
m2r2==0.3.3 | ||
Sphinx<7 | ||
sphinx_rtd_theme | ||
docutils==0.19 | ||
mistune<2.0.0 | ||
sphinx-mdinclude |
Oops, something went wrong.