dimanche 16 janvier 2022

Is folder name shadowing 3rd-party package name or Python module name is an anti-pattern?

Consider the following (very simplified) project structure:

project/
    src/
        collections/
        validators/
        foo/
        bar/

The "collections" sub-directory name shadows the Python's "collections" module.

The "validators" sub-directory name shadows "validators" 3rd-party package name.

Question:

Is it an anti-pattern to have sub-directories with the same names as Python modules or 3rd-party packages?

Note, the real project structure has about 100 sub-directories, so it is a bit hard to do not shadow names.

Aucun commentaire:

Enregistrer un commentaire