diff --git a/pyproject.toml b/pyproject.toml index 1d79083..042291d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,3 +22,31 @@ integrationtest = ["*"] [project.entry-points."pytest11"] name_of_plugin = "integrationtest.integrationtest_commandline" + +[project.optional-dependencies] +dev = [ + "ruff", + "pytest", + "pytest-cov", +] + +[tool.pytest.ini_options] +addopts = "-v --tb=short --cov=integrationtest --cov=src/integrationtest tests/" # omitted --cov-report=html to avoid suppressing table to stdout + +[tool.coverage.run] +source = ["integrationtest"] +omit = ["tests/*", "scripts/*"] + +# * See https://docs.astral.sh/ruff/rules/ for details on Ruff's linting options +[tool.ruff.lint] +select = [ + "E", # pycodestyle errors + "F", # check for errors using PyFlakes + "I", # best practices for import calls + "UP", # suggestions for code modernization + "RUF", # build in Ruff warnings + "R", # refactoring suggestions +] +ignore = [ + "E501", # Don't enforce line lengths within a linting context +]