I just started a new project inside a virtual envi...
# questions
g
I just started a new project inside a virtual environment and installed from the requirements file. I am test-driving the relatively new 19 version. I am getting this error, which I would appreciate advice on updating.
Copy code
RuntimeError: Found unexpected keys in 'pyproject.toml'. Make sure it only contains the following keys: ['package_name', 'project_name', 'kedro_init_version', 'source_dir', 'tools'].
My pyproject.toml looks like
Copy code
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "prrhoem"
readme = "README.md"
dynamic = ["dependencies", "version"]

[project.scripts]
prrhoem = "prrhoem.__main__:main"

[project.entry-points."kedro.hooks"]

[project.optional-dependencies]
docs = [
    "docutils<0.18.0",
    "sphinx~=3.4.3",
    "sphinx_rtd_theme==0.5.1",
    "nbsphinx==0.8.1",
    "sphinx-autodoc-typehints==1.11.1",
    "sphinx_copybutton==0.3.1",
    "ipykernel>=5.3, <7.0",
    "Jinja2<3.1.0",
    "myst-parser~=0.17.2",
]

[tool.setuptools.dynamic]
dependencies = {file = "requirements.txt"}
version = {attr = "prrhoem.__version__"}

[tool.setuptools.packages.find]
where = ["src"]
namespaces = false

[tool.kedro]
package_name = "prrhoem"
project_name = "prrhoem"
kedro_init_version = "0.19.1"
tools = ['Linting', 'Testing', 'Custom Logging', 'Documentation', 'Data Structure', 'PySpark', 'Kedro Viz']
example_pipeline = "False"
source_dir = "src"

[tool.pytest.ini_options]
addopts = """
--cov-report term-missing \
--cov src/prrhoem -ra"""

[tool.coverage.report]
fail_under = 0
show_missing = true
exclude_lines = ["pragma: no cover", "raise NotImplementedError"]

[tool.ruff]
line-length = 88
show-fixes = true
select = [
    "F",   # Pyflakes
    "W",   # pycodestyle
    "E",   # pycodestyle
    "I",   # isort
    "UP",  # pyupgrade
    "PL",  # Pylint
    "T201", # Print Statement
]
ignore = ["E501"]  # Black takes care of line-too-long
So naturally I have more keys, but these are the defaults! Should I delete parts of the file down to the required keys, or is there something else I should consider?