bootstrapped AppConfig name is hyphenated

Open Beginner friendly
#724 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
python
Domain
tooling

Research direction

Reproduce the bootstrap flow and inspect the generated pulp_replica/app/__init__.py, where the invalid Pulp-ReplicaPluginAppConfig declaration appears. Trace that output back to the plugin template, remove the hyphen in the generated class name, and rerun migration generation to confirm the bootstrapped plugin is valid Python.

Written by the indexing model from the issue text.

Description

I got the following error the first time I tried to generate migrations from a bootstrapped plugin. The hyphen should be removed.

  File "/src/pulp-replica/pulp_replica/app/__init__.py", line 4
    class Pulp-ReplicaPluginAppConfig(PulpPluginAppConfig):
              ^
SyntaxError: invalid syntax
Dominant language
Python
Stars
10
Forks
40
Avg merge
21h 24m
Merged PRs (30d)
8

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pulp/plugin_template

All issues in pulp/plugin_template

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.