Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

feat: support loading extensions without an entrypoint #671

Merged
merged 1 commit into from
Oct 16, 2022

Conversation

LordOfPolls
Copy link
Member

What type of pull request is this?

  • Non-breaking code change
  • Breaking code change
  • Documentation change/addition
  • Tests change

Description

Allows naff to handle loading an extension file without an entrypoint. Note that it's impossible to determine intent, this just loads anything that bases Extension in a file - I still strongly advise declaring an entrypoint

Changes

  • Update load_extension to parse a module for Extension objects if no setupfile is defined

Checklist

  • I've formatted my code with Black
  • I've ensured my code works on Python 3.10.x
  • I've tested my code

@LordOfPolls LordOfPolls added the New Feature::Library A new feature for the library label Oct 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
New Feature::Library A new feature for the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants