diff --git a/pyproject.toml b/pyproject.toml index 2e521b9..62a21c2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,12 +15,6 @@ dependencies = [ "rich", ] -[project.optional-dependencies] -develop = [ - "ipdb", - "ipython", -] - [tool.setuptools] package-dir = {"" = "src"} include-package-data = true @@ -35,3 +29,35 @@ where = ["src"] [project.scripts] runconf-shifter-ui = "runconf_ui.apps.__main__shifter_view__:main" py_oks_dump = "runconf_ui.apps.__main__oks_dump__:main" + +[project.optional-dependencies] +dev = [ + "ruff", + "pytest", + "pytest-cov", +] +develop = [ + "ipdb", + "ipython", +] + +[tool.pytest.ini_options] +addopts = "-v --tb=short --cov=runconf_ui --cov=src/runconf_ui tests/" # omitted --cov-report=html to avoid suppressing table to stdout + +[tool.coverage.run] +source = ["runconf_ui"] +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 +]