summaryrefslogtreecommitdiff
path: root/requirements.dev.txt
Commit message (Collapse)AuthorAgeFilesLines
* Migrate from nosetest to pytestIwan Aucamp2021-10-241-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch replace all uses of nose with pytest. It also includes a pytest plugin for creating EARL reports for tests with a `rdf_test_uri` parameter. Some caveats: - HTML report directory is now htmlcov instead of coverage - There is some warning related to the EARL reporting plugin which I can't quite figure out: ``` .venv/lib64/python3.7/site-packages/_pytest/config/__init__.py:676 /home/iwana/sw/d/github.com/iafork/rdflib/.venv/lib64/python3.7/site-packages/_pytest/config/__init__.py:676: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: test.earl self.import_plugin(import_spec) ``` This is not causing any problems as far as I can tell, but still annoying. - python setup.py test won't work anymore, I can make it work but this is not advised by pytest: https://github.com/pytest-dev/pytest-runner/#deprecation-notice - run_test.py is still there but it's not really referenced anymore from anywhere and the options it accepts are completely different as it's options were based on nose. I would say it should be removed entirely but for now it is basically just a wrapper around pytest that basically does nothing. - Removed references to test attributes as currently they are not being used anywhere anyway, I guess we can add them back if there is some use for them later. - A lot of tests are still marked to skip when really they should be marked with xfail. This is also affecting the RDFT test manifests and result in reports saying tests are skipped when really we know they will fail and they are only skipped for this reason. But there is no change here from before, and pytest makes it easier to dynamically do expected failures. Special thanks to Wes Turner for his advice and inputs on this process.
* Use pytest instead of noseNatanael Arndt2021-10-181-2/+1
|
* Update black to latest version, to avoid a bug that was in 21.6b0 and 21.7b0 ↵Ashley Sommer2021-10-111-1/+1
| | | | releases. (#1434)
* Fix mypy type errors and add mypy to .drone.ymlIwan Aucamp2021-09-101-0/+3
| | | | | | | | | | | | | | | | | | | | | Fixes #1311 Add `mypy` to .drone.yml and fix type errors that come up. Not type checking examples or tests. Other changes: - fix return value for `Graph.serialize` (refs #1394) - remove default value for `rdflib.plugins.sparql.algebra.translateAlgebra` (refs #1322) - add .dockerignore to reduce context size and make docker quicker to run. - add .flake8 config to ignore line length as black is managing formatting. - add mypy to docker-compose, makefile and tox.ini - fix the way csv2rdf is invoked to ensure that the right code gets executed.
* Revert black (#1400)Nicholas Car2021-09-061-1/+1
| | | | | | | | | * add dateTimeStamp, fundamental & constraining facets, 7-prop data model * revert black version to that pinned in black.toml * Revert "add dateTimeStamp, fundamental & constraining facets, 7-prop data model" This reverts commit e5bcdd381b73c9ecfd436d1f8e221b27aedd5d3c.
* Bump black from 21.6b0 to 21.7b0dependabot[bot]2021-07-191-1/+1
| | | | | | | | | | | | | | Bumps [black](https://github.com/psf/black) from 21.6b0 to 21.7b0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/commits) --- updated-dependencies: - dependency-name: black dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com>
* Initial python 3.7 requirement update, add new Drone tests, add black.toml ↵Ashley Sommer2021-07-081-1/+2
| | | | file, add .editorconfig file
* add berkeleydb to reqs.devNicholas Car2021-06-281-0/+1
|
* Move installation of coverage and nose-timer to requirements.dev.txtNatanael Arndt2021-03-011-0/+2
|
* more requirements shuffling for TravisNicholas Car2020-10-031-0/+1
|
* apparently flake8 is needed in requirements.txtNicholas Car2020-10-031-1/+0
|
* re-adding flake8 for TravisNicholas Car2020-10-031-0/+1
|
* removed black as it's not a requirement (nor flake8)Nicholas Car2020-10-031-1/+0
|
* add nose to run tests, doctest-... moved from requirements.txtNicholas Car2020-10-031-0/+2
|
* pin black versionFlorian Ludwig2020-09-081-1/+1
|
* blacked container.py, tiny doctest fixNicholas Car2020-05-251-0/+1
|
* fix for doctestsNicholas Car2020-05-251-0/+2