From 308b0f6a9cb7063d7117117b960d493478dfd310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Sun, 4 Oct 2020 19:57:42 +0100 Subject: Move pytest configuration to pyproject.toml. --- pyproject.toml | 11 +++++++++++ setup.cfg | 13 ------------- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a420fce..a7c08d1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,3 +42,14 @@ known_first_party = ['glucometerutils'] known_third_party = ['construct', 'hidapi', 'pyscsi', 'serial', 'usbmon'] [tool.setuptools_scm] + +[tool.pytest.ini_options] +addopts = "--color=yes --ignore=setup.py -ra" +timeout = 120 +norecursedirs = [ + '.env', + '.git', + 'dist', + 'build', + 'venv', +] diff --git a/setup.cfg b/setup.cfg index 045e2f2..7f4a507 100644 --- a/setup.cfg +++ b/setup.cfg @@ -44,19 +44,6 @@ lib/udev/rules = console_scripts = glucometer = glucometerutils.glucometer:main -[tool:pytest] -addopts = - --color=yes - --ignore=setup.py - -r a -norecursedirs = - .git - dist - build - venv - .env -timeout = 120 - [flake8] max-line-length = 88 # Ignore long line errors, black takes care of them. -- cgit v1.2.3