Skip to content

infrastructure: Create a methods/ directory for modular community contributions #55

@itsdakshjain

Description

@itsdakshjain

Description

Right now, everyone is adding their functions directly into is_one_one.py. This is starting to cause merge conflicts when multiple Pull Requests are open at the same time.

To fix this, we want to shift to a plugin-style modular system where future contributors can just drop their own independent Python files into a dedicated folder without touching our core main file.

Tasks:

  1. Create a new directory in the root called methods/.
  2. Inside the methods/ directory, create an empty __init__.py file so Python treats it as a package.
  3. Move one or two existing validation functions out of is_one_one.py and place them into a new file inside the directory named methods/sample_method.py to show others how it works.
  4. Update is_one_one.py to dynamically import and execute all Python files/functions stored inside the methods/ directory automatically.

Target Project Structure:

is-one-one/
├── methods/             <-- [NEW]
│   ├── __init__.py      <-- [NEW]
│   └── sample_method.py <-- [NEW]
├── is_one_one.py        <-- [MODIFIED to dynamically load files from methods/]
└── (other files...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions