Skip to content

Should datamodel be included in .gitignore or managed by git ? #123

@noelmcloughlin

Description

@noelmcloughlin

After running just setup

=== Setup completed! ===
Various model representations have been created under directory "project". By default
they are ignored by git. You decide whether you want to add them to git tracking or
continue to git-ignore them as they can be regenerated if needed.
For tracking specific subfolders, add !project/[foldername]/* line(s) to ".gitignore".

the files under datamodel/ are not managed by git but not included in .gitignore either. I wonder should they be ignored?

$ git status
On branch main
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   docs/schema/my_awesome_schema.yaml

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        src/my_awesome_schema/datamodel/my_awesome_schema.py
        src/my_awesome_schema/datamodel/my_awesome_schema_pydantic.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    _projectRelated to the generated project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions