diff --git a/Pipfile b/Pipfile index 038e9ae..1c4ac71 100644 --- a/Pipfile +++ b/Pipfile @@ -20,7 +20,6 @@ tox = "*" twine = "*" build = "*" flake8 = "*" - flake8-builtins = "*" flake8-breakpoint = "*" flake8-bugbear = "*" diff --git a/README.md b/README.md index bc64b88..eb0de58 100644 --- a/README.md +++ b/README.md @@ -67,10 +67,10 @@ Browser engine(s) (optional for Selenium-based tests): * Geckodriver (Firefox) * Chromedriver -**Clone repository** +**Clone repository + init submodules** ```shell -git clone https://github.com/gdcc/dataverse_tests.git +git clone --recurse-submodules https://github.com/gdcc/dataverse_tests.git cd dataverse_tests/ ``` diff --git a/pyproject.toml b/pyproject.toml index 45d90fc..864b334 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,11 +1,3 @@ [build-system] requires = ["setuptools", "wheel"] build-backend = "setuptools.build_meta:__legacy__" - -[project] -dependencies = [ - "pyDataverse==0.3.1", - "pytest-selenium==2.0.1", - "typer==0.3.2", - 'pydantic==1.8.2,extras=["dotenv"]' -] diff --git a/setup.cfg b/setup.cfg index 21082eb..6893521 100644 --- a/setup.cfg +++ b/setup.cfg @@ -35,10 +35,6 @@ packages = dvtests.testing.custom.aussda_production dvtests.utils -# [options.entry_points] -# console_scripts = -# dvtests = src.dvtests.main:app - [tool:pytest] testpaths = tests addopts = -v diff --git a/src/dvtests/__init__.py b/src/dvtests/__init__.py index c83fcff..3d3d923 100644 --- a/src/dvtests/__init__.py +++ b/src/dvtests/__init__.py @@ -12,7 +12,7 @@ __email__ = "mail@stefankasberger.at" __copyright__ = "Copyright (c) 2022 Stefan Kasberger" __license__ = "MIT License" -__version__ = "0.1.0" +# __version__ = "0.1.0" __url__ = "https://github.com/gdcc/dataverse_tests" __description__ = "Dataverse tests." __name__ = "dvtests" diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..1792b12 --- /dev/null +++ b/tox.ini @@ -0,0 +1,43 @@ +[tox] +envlist = packaging,dist_install +skip_missing_interpreters = True +ignore_basepython_conflict = True + +[testenv] +description = default settings for unspecified tests +usedevelop = False +skip_install = False +passenv = * +basepython = python3.6 + +[testenv:pylint] +description = pylint for linting +commands = + pylint src/dvtests/ + +[testenv:mypy] +commands = + mypy src/dvtests/ setup.py + +[flake8] +max-line-length = 80 +ignore = E129 +exclude = + .tox + .egg + +[testenv:flake8] +description = flake8 for style guide and docstring testing +commands = + pip uninstall -y flake8-pytest-style + flake8 src/dvtests/ + +[testenv:black] +description = black for auto-formatting +commands = + black src/dvtests/ + +[testenv:pre-commit] +deps = pre-commit +commands = + pre-commit run --all-files