Code Monkey home page Code Monkey logo

skeleton-python's People

Contributors

bswck avatar dependabot[bot] avatar pre-commit-ci[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

skeleton-python's Issues

Configure towncrier

Ideally, ship it with the release script so that I don't have to ever touch towncrier CLI.

Add preview option

It's needed to ensure that the released skeleton looks fine after copy/update to avoid cases like 5826ea1.

Create Discord webhook integrations and set up GitHub webhooks to publish to them

https://docs.hikari-py.dev/en/latest/reference/hikari/impl/rest/#hikari.impl.rest.RESTClientImpl.create_webhook
https://docs.github.com/en/webhooks/webhook-events-and-payloads#commit_comment

gh api /repos/{{repo_name}}/hooks --input - <<< '{"name":"web","events":["create","commit_comment","pull_request_review_comment","delete","fork","issue_comment","issues","label","member","milestone","public","pull_request","pull_request_review","push","release","repository","star","watch"],"config":{"url":"{{webhook_url}}","content_type":"json"}}'

Suggestion: inject copier-templates-extensions into the pipx venv

Instead of:

pipx install copier
python3 -m pip install copier-templates-extensions

I suggest:

pipx install copier
pipx inject copier copier-templates-extensions

Which keeps the extension isolated, in the pipx venv for copier, from the interpreter site-packages.

Describe mechanized patches

Mechanized patches are made by running $ poe reanswer.

After reanswer, find what answers were changed and include the changes in the mechanized patch commit.

cp: cannot stat './handle-task-event': No such file or directory

Hi,

I have encountered an error

Caution

cp: cannot stat './handle-task-event': No such file or directory

Caution

Command 'set -eE && ( ./handle-task-event || (TEMPLATE_PREVIEW=$(mktemp); cp ./handle-task-event $TEMPLATE_PREVIEW) ) && ( if test $TEMPLATE_PREVIEW; then ( echo "Opening the failing template preview" && $EDITOR $TEMPLATE_PREVIEW ); fi )' returned non-zero exit status 1.

To reproduce

  1. Install all the requitements listed in README
  2. Install poetry with pipx
  3. Run: copier copy --trust --vcs-ref HEAD "$SKELETON" iteapot-backend
  4. Answer prompts

Expected behaviour

The repository and the project files are successfully created without any error and I can find them in my file system.

Env

VS Code integrated terminal connected to WSL2 with the following version of Ubuntu

Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:        22.04
Codename:       jammy

Full error

Similar error was raised when repository name was open, so I think it is not related.

โ†’ Running copier hook...
Previous license name: Custom
Set license name: MIT
Generating documentation symlinks...
  docs/changelog.md -> ../CHANGELOG.md
Generated 1 documentation symlinks
๐Ÿ›ˆ Copier hook exited with code 0.
โ†’ Removing copier hook...

โ†’ Initializing git repository...
๐Ÿ›ˆ Main branch: main
GraphQL: Name already exists on this account (createRepository)
cp: cannot stat './handle-task-event': No such file or directory
Traceback (most recent call last):
  File "/home/gregb12/.local/bin/copier", line 8, in <module>
    sys.exit(copier_app_run())
             ^^^^^^^^^^^^^^^^
  File "/home/gregb12/.local/pipx/venvs/copier/lib/python3.12/site-packages/plumbum/cli/application.py", line 638, in run
    inst, retcode = subapp.run(argv, exit=False)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gregb12/.local/pipx/venvs/copier/lib/python3.12/site-packages/plumbum/cli/application.py", line 633, in run
    retcode = inst.main(*tailargs)
              ^^^^^^^^^^^^^^^^^^^^
  File "/home/gregb12/.local/pipx/venvs/copier/lib/python3.12/site-packages/decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gregb12/.local/pipx/venvs/copier/lib/python3.12/site-packages/copier/cli.py", line 72, in handle_exceptions
    return method(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gregb12/.local/pipx/venvs/copier/lib/python3.12/site-packages/copier/cli.py", line 265, in main
    with self._worker(
  File "/home/gregb12/.local/pipx/venvs/copier/lib/python3.12/site-packages/copier/main.py", line 205, in __exit__
    raise value
  File "/home/gregb12/.local/pipx/venvs/copier/lib/python3.12/site-packages/copier/cli.py", line 272, in main
    worker.run_copy()
  File "/home/gregb12/.local/pipx/venvs/copier/lib/python3.12/site-packages/copier/main.py", line 758, in run_copy
    self._execute_tasks(self.template.tasks)
  File "/home/gregb12/.local/pipx/venvs/copier/lib/python3.12/site-packages/copier/main.py", line 284, in _execute_tasks
    subprocess.run(task_cmd, shell=use_shell, check=True, env=local.env)
  File "/usr/lib/python3.12/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'set -eE && ( ./handle-task-event || (TEMPLATE_PREVIEW=$(mktemp); cp ./handle-task-event $TEMPLATE_PREVIEW) ) && ( if test $TEMPLATE_PREVIEW; then ( echo "Opening the failing template preview" && $EDITOR $TEMPLATE_PREVIEW ); fi )' returned non-zero exit status 1.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.