Skip to content

Commit

Permalink
Add tox; Fix minor packaging issues
Browse files Browse the repository at this point in the history
  • Loading branch information
skasberger committed Jun 22, 2022
1 parent 426f718 commit cae9fbb
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 16 deletions.
1 change: 0 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ tox = "*"
twine = "*"
build = "*"
flake8 = "*"

flake8-builtins = "*"
flake8-breakpoint = "*"
flake8-bugbear = "*"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/
```

Expand Down
8 changes: 0 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"]'
]
4 changes: 0 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/dvtests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
43 changes: 43 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cae9fbb

Please sign in to comment.