Skip to content

Pyproject.toml support #709

@GabrielCardoso88

Description

@GabrielCardoso88

Checklist

Safety version

3.4.0b7

Python version

3.10

Operating System

Windows 11

Describe the problem you'd like to have solved

There is no support do pyproject.toml as project configuration. There is only .safety-project.ini option to do it.

Describe the ideal solution

Include read pyproject.toml if exists and not found .safety-project.ini on safety.init.main.load_unverified_project_from_config.

Alternatives and current workarounds

No response

Additional context

No response

What I Did

I tried to configure in my pyproject.toml. I didn't find on documentation instructions about ini file and codebases association. I got this error on my workflow:

Safety found an existing project with this name in your organization:
  Project name: <project-name>
  Project admin: <my-email>
Unhandled exception happened: EOF when reading a line
Do you want to link it with this existing project? [y/n] (y):

I would expect that configuring into pyproject.toml resolve, but I saw on code that only .safety-project.ini is searched to verify project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions