-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38f044f
commit d329c94
Showing
5 changed files
with
28 additions
and
51 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 was deleted.
Oops, something went wrong.
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,35 +1,33 @@ | ||
# This file can be used to customize tox tests as well as other test frameworks like flake8 and mypy | ||
|
||
[tox] | ||
envlist = py38 | ||
; envlist = py37, py38, py39 | ||
envlist = py3{8,9,10,11,12,13}, format, lint | ||
isolated_build = true | ||
|
||
[testenv] | ||
allowlist_externals = poetry | ||
|
||
[testenv:pytest] | ||
# Run the python tests. | ||
# To execute, run `tox -e pytest` | ||
envlist = py38, py39, py310, py311, py312 | ||
deps = | ||
coverage | ||
pytest | ||
commands = | ||
poetry install -v | ||
poetry run coverage run -m pytest | ||
poetry run coverage html -d tap_csv/tests/codecoverage | ||
coverage run -m pytest | ||
coverage html -d tap_csv/tests/codecoverage | ||
|
||
[testenv:format] | ||
# Attempt to auto-resolve lint errors before they are raised. | ||
# To execute, run `tox -e format` | ||
deps = | ||
ruff | ||
commands = | ||
poetry install -v | ||
poetry run ruff check --fix tap_csv/ | ||
poetry run ruff format tap_csv | ||
ruff check --fix tap_csv/ | ||
ruff format tap_csv | ||
|
||
[testenv:lint] | ||
# Raise an error if lint and style standards are not met. | ||
# To execute, run `tox -e lint` | ||
deps = | ||
ruff | ||
mypy | ||
commands = | ||
poetry install -v | ||
poetry run ruff check --diff tap_csv/ | ||
poetry run ruff format --check tap_csv | ||
poetry run mypy tap_csv --exclude='tap_csv/tests' --ignore-missing-imports | ||
ruff check --diff tap_csv/ | ||
ruff format --check tap_csv | ||
mypy tap_csv --exclude='tap_csv/tests' --ignore-missing-imports |