renedudfield,
@renedudfield@fosstodon.org avatar

In is there a standard for custom commands? (development scripts/tasks)

Like scripts in package.json with JavaScript or Makefile targets, or custom commands in rust (and alias in rust). For development tasks like format, test, make check... and custom dev scripts.

In python with setup.py you could define custom commands. But now?

Doesn't seem to be a standard for this, just a bunch of separate tools. But I would love to know if I'm missing something for custom commands/scripts.

renedudfield,
@renedudfield@fosstodon.org avatar

On reflection pyproject.toml scripts isn’t exactly what I’m after. It’s for install time scripts, not development time scripts. Whilst it’s probably fine to use it for development scripts in some cases, not for a library. Because for users of the library we don’t want to install the development scripts. For one package I maintain this will be fine though (I already use the scripts via setuptools for this).

I see how to use tox to run arbitrary commands now. Never knew it was used for that.

renedudfield,
@renedudfield@fosstodon.org avatar

For things like format, lint, and such... pre-commit is fine I guess. Not a "standard", but fine.

Which covers a lot of needs. But that still leaves out dev scripts which need to be run occasionally, not after every commit.

Anyway. A combination of pre-commit, scripts and tox covers my needs.

bk1e,
@bk1e@mastodon.social avatar

@renedudfield “poethepoet” is another tool for running development-time tasks.

deshipu,
@deshipu@fosstodon.org avatar

deleted_by_author

  • Loading...
  • renedudfield,
    @renedudfield@fosstodon.org avatar

    @deshipu Ah thanks. I'll have to look into nox. It's new to me.

    nedbat,
    @nedbat@hachyderm.io avatar

    @renedudfield People choose different approaches. Common ones are make, tox, and nox.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • python
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines