API - move pytest config in pyproject.toml
This commit is contained in:
parent
667e31d053
commit
2bd9df63c2
@ -16,7 +16,7 @@ VENV = $(PWD)/.venv
|
||||
PYTHON = $(VENV)/bin/python
|
||||
POETRY = poetry
|
||||
FLASK = $(VENV)/bin/flask
|
||||
PYTEST = $(VENV)/bin/py.test
|
||||
PYTEST = $(VENV)/bin/py.test -c pyproject.toml
|
||||
GUNICORN = $(VENV)/bin/gunicorn
|
||||
COV = $(VENV)/bin/python-codacy-coverage
|
||||
|
||||
|
24
poetry.lock
generated
24
poetry.lock
generated
@ -265,6 +265,14 @@ version = "0.19"
|
||||
[package.dependencies]
|
||||
zipp = ">=0.5"
|
||||
|
||||
[[package]]
|
||||
category = "dev"
|
||||
description = "A Python utility / library to sort Python imports."
|
||||
name = "isort"
|
||||
optional = false
|
||||
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
|
||||
version = "4.3.21"
|
||||
|
||||
[[package]]
|
||||
category = "main"
|
||||
description = "Various helpers to pass data to untrusted environments and back."
|
||||
@ -461,6 +469,18 @@ version = "1.0.4"
|
||||
flake8 = ">=3.5"
|
||||
pytest = ">=3.5"
|
||||
|
||||
[[package]]
|
||||
category = "dev"
|
||||
description = "py.test plugin to check import ordering using isort"
|
||||
name = "pytest-isort"
|
||||
optional = false
|
||||
python-versions = "*"
|
||||
version = "0.3.1"
|
||||
|
||||
[package.dependencies]
|
||||
isort = ">=4.0"
|
||||
pytest = ">=3.5"
|
||||
|
||||
[[package]]
|
||||
category = "dev"
|
||||
description = "Invoke py.test as distutils command with dependency resolution"
|
||||
@ -725,7 +745,7 @@ version = "0.6.0"
|
||||
more-itertools = "*"
|
||||
|
||||
[metadata]
|
||||
content-hash = "9551d384305ce18043a26db995e8251b58dbb880024f025bfcc0dd80f7c6bc83"
|
||||
content-hash = "1ca61d9d742da46bce4315efa16fb932bc4bd03726d2cd0ddc810fe75158da3d"
|
||||
python-versions = "^3.7"
|
||||
|
||||
[metadata.hashes]
|
||||
@ -756,6 +776,7 @@ gunicorn = ["aa8e0b40b4157b36a5df5e599f45c9c76d6af43845ba3b3b0efe2c70473c2471",
|
||||
idna = ["c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407", "ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c"]
|
||||
imagesize = ["3f349de3eb99145973fefb7dbe38554414e5c30abd0c8e4b970a7c9d09f3a1d8", "f3832918bc3c66617f92e35f5d70729187676313caa60c187eb0f28b8fe5e3b5"]
|
||||
importlib-metadata = ["23d3d873e008a513952355379d93cbcab874c58f4f034ff657c7a87422fa64e8", "80d2de76188eabfbfcf27e6a37342c2827801e59c4cc14b0371c56fed43820e3"]
|
||||
isort = ["54da7e92468955c4fceacd0c86bd0ec997b0e1ee80d97f67c35a78b719dccab1", "6e811fcb295968434526407adb8796944f1988c5b65e8139058f2014cbe100fd"]
|
||||
itsdangerous = ["321b033d07f2a4136d3ec762eac9f16a10ccd60f53c0c91af90217ace7ba1f19", "b12271b2047cb23eeb98c8b5622e2e5c5e9abd9784a153e9d8ef9cb4dd09d749"]
|
||||
jinja2 = ["065c4f02ebe7f7cf559e49ee5a95fb800a9e4528727aec6f24402a5374c65013", "14dd6caf1527abb21f08f86c784eac40853ba93edb79552aa1e4b8aef1b61c7b"]
|
||||
mako = ["a36919599a9b7dc5d86a7a8988f23a9a3a3d083070023bab23d64f7f1d1e0a4b"]
|
||||
@ -776,6 +797,7 @@ pyparsing = ["6f98a7b9397e206d78cc01df10131398f1c8b8510a2f4d97d9abd82e1aacdd80",
|
||||
pytest = ["95b1f6db806e5b1b5b443efeb58984c24945508f93a866c1719e1a507a957d7c", "c3d5020755f70c82eceda3feaf556af9a341334414a8eca521a18f463bcead88"]
|
||||
pytest-cov = ["2b097cde81a302e1047331b48cadacf23577e431b61e9c6f49a1170bbe3d3da6", "e00ea4fdde970725482f1f35630d12f074e121a23801aabf2ae154ec6bdd343a"]
|
||||
pytest-flake8 = ["4d225c13e787471502ff94409dcf6f7927049b2ec251c63b764a4b17447b60c0", "d7e2b6b274a255b7ae35e9224c85294b471a83b76ecb6bd53c337ae977a499af"]
|
||||
pytest-isort = ["3be60e0de277b420ff89303ca6494320c41f7819ffa898756b90ef976e4c636a", "4bfee60dad1870b51700d55a85f5ceda766bd9d3d2878c1bbabee80e61b1be1a"]
|
||||
pytest-runner = ["25a013c8d84f0ca60bb01bd11913a3bcab420f601f0f236de4423074af656e7a", "d04243fbf29a3b574f18f1bcff2a07f505db5daede82f706f2e32728f77d3f4d"]
|
||||
python-dateutil = ["7e6584c74aeed623791615e26efd690f29817a27c73085b78e4bad02493df2fb", "c89805f6f4d64db21ed966fda138f8a5ed7a4fdbc1a8ee329ce1b74e3c74da9e"]
|
||||
python-editor = ["1bf6e860a8ad52a14c3ee1252d5dc25b2030618ed80c022598f00176adc8367d", "51fda6bcc5ddbbb7063b2af7509e43bd84bfc32a4ff71349ec7847713882327b", "5f98b069316ea1c2ed3f67e7f5df6c0d8f10b689964a4a811ff64f0106819ec8", "c3da2053dbab6b29c94e43c486ff67206eafbe7eb52dbec7390b5e2fb05aac77", "ea87e17f6ec459e780e4221f295411462e0d0810858e055fc514684350a2f522"]
|
||||
|
@ -23,6 +23,7 @@ tqdm = "^4.35"
|
||||
pytest = "^5.1"
|
||||
pytest-runner = "^5.1"
|
||||
pytest-cov = "^2.7"
|
||||
pytest-isort = "^0.3.1"
|
||||
pytest-flake8 = "^1.0"
|
||||
codacy-coverage = "^1.3"
|
||||
sphinx = "^2.2"
|
||||
@ -33,3 +34,7 @@ recommonmark = "^0.6.0"
|
||||
[build-system]
|
||||
requires = ["poetry>=0.12"]
|
||||
build-backend = "poetry.masonry.api"
|
||||
|
||||
[tool.pytest]
|
||||
norecursedirs = "fittrackee_api/.venv"
|
||||
filterwarnings = "ignore::DeprecationWarning"
|
||||
|
@ -1,4 +0,0 @@
|
||||
[pytest]
|
||||
norecursedirs = fittrackee_api/.venv
|
||||
filterwarnings =
|
||||
ignore::DeprecationWarning
|
Loading…
Reference in New Issue
Block a user