Skip to content

fix(config): simplify Dynaconf discovery and wire API_URL (#75) - #83

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/fix-dynaconf-config-75-790e
Jul 20, 2026
Merged

fix(config): simplify Dynaconf discovery and wire API_URL (#75)#83
cursor[bot] merged 1 commit into
mainfrom
cursor/fix-dynaconf-config-75-790e

Conversation

@lbrealdev

Copy link
Copy Markdown
Owner

Summary

Simplifies Dynaconf configuration so an installed package no longer depends on brittle ../../settings.toml paths, wires API_URL into request URLs, and documents config in one place.

Closes #75.

Changes

  • Load settings.toml / .secrets.toml by basename from the working directory
  • Use environments=True and default API_URL via Validator
  • Resolve API base URL from settings (GITHUB_API_URL / API_URL) in get_api_url()
  • Bump dynaconf to >=3.3.2 (locked 3.3.2)
  • Add docs/configuration.md with Dynaconf references (once only)
  • Point README / CONTRIBUTING at that doc without duplicating links
  • Add config/API URL tests

Acceptance criteria (#75)

  • Resolve API base URL from settings with a sensible default
  • Reliable settings discovery for installed + local-dev usage
  • Document auth/config for end users

Test plan

  • pytest -v (18 passed)
Open in Web Open in Cursor 

Load settings.toml by basename from CWD, resolve API_URL from settings
with a default, bump dynaconf to 3.3.2, and document configuration once.

Closes #75.

Co-authored-by: akae <lbrealdev@users.noreply.github.com>
@lbrealdev
lbrealdev marked this pull request as ready for review July 20, 2026 21:09
@cursor

cursor Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@cursor
cursor Bot merged commit 8ca9b67 into main Jul 20, 2026
4 checks passed
@cursor
cursor Bot deleted the cursor/fix-dynaconf-config-75-790e branch July 20, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use Dynaconf API_URL and fix settings file discovery

2 participants