Skip to content

Python: Extend and/or override EXCLUDED_FILES #185

@milesgranger

Description

@milesgranger

Describe your idea/feature/enhancement

It appears the EXCLUDED_FILES is hardcoded.

It would be delightful if this could be extended/modified. I have many files and directories which are ignored by my own .gitignore but these continue to be included in the build directory by SAM. (build/, .eggs/, .ipython/, .ipynb_checkpoints/, dist/, package.json, package-lock.json, etc, etc)

Then there are files that shouldn't be ignored by git but should be ignored during the build such as a tests directory.

Furthermore, I don't actually want to ignore .git/ b/c I use setuptools-scm to control versioning with git, and during the build that fails because it has no git context.

Proposal

Add configuration ability to override or extend with existing .gitignore or with own list, ie a .samignore file

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions