Giter Site home page Giter Site logo

Dev Container about codespell HOT 7 CLOSED

korverdev avatar korverdev commented on August 16, 2024
Dev Container

from codespell.

Comments (7)

larsoner avatar larsoner commented on August 16, 2024 1

Having one more file to maintain has a cost, but if it can automatically pull in deps and such (e.g., using pip install .[dev] or whatever inside the container) it sounds painless enough. So +1 from me

from codespell.

DimitriPapadopoulos avatar DimitriPapadopoulos commented on August 16, 2024

What would a dev container look like? Right now, you “just” need to:

  • install Python,
  • run pip install -e ".[dev]".

from codespell.

korverdev avatar korverdev commented on August 16, 2024

@DimitriPapadopoulos That is likely. Codespell doesn't have many requirements, so it would be a relatively simple config file. The nice thing with dev containers is the integration with VSCode and a few other editors that allows you to setup a consistent, containerized development environment in one button click. It's definitely not a need, but I've found them very helpful when juggling multiple development environments between projects.

from codespell.

DimitriPapadopoulos avatar DimitriPapadopoulos commented on August 16, 2024

I must admit my ignorance, I don't know what a “dev container” for IDEs looks like. Is the expected format standard?

Should it be maintained in this repository, or perhaps a new repository under https://github.com/codespell-project? How do other projects manage that?

from codespell.

korverdev avatar korverdev commented on August 16, 2024

Apologies. I probably should've explained the technology more. Dev containers are an open standard Microsoft put together. It's effectively just a JSON file that describes a standard Docker development environment and would live in the Codespell repository. Here's an example.

Currently, this is used by GitHub Codespaces, which is GitHub's cloud development solution. VSCode has a first-party extension for this. There's also a CLI and support has been or is being added to quite a few other code editors.

from codespell.

DimitriPapadopoulos avatar DimitriPapadopoulos commented on August 16, 2024

So this would just involve adding a small .devcontainer/devcontainer.json file, wouldn't it?

@larsoner Would you agree to add such a file?

from codespell.

korverdev avatar korverdev commented on August 16, 2024

That is correct. Unless you actively use dev containers, it'll just mean one more config file in the repo and wouldn't impact current local development setups. Wanted to run this by you first since this is a somewhat opinionated technology, but if y'all are open to this, I'd be happy to set this up. I find it extremely useful as a sort of venv alternative.

from codespell.

Related Issues (20)

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.