Giter Site home page Giter Site logo

Comments (7)

xmnlab avatar xmnlab commented on September 15, 2024 1

As you can see, there is no src folder. So, this is a flat layout, where typically source files are in a folder called with the same name of the package in the root of the project.

To convert that to src layout, basically:

  1. Create a src folder in the root of the project
  2. move containers_sugar to src
  3. Update pyproject.toml

Verify in the code any place that is using the path containers_sugar/ and replace by the new path

Some references:

from sugar.

joel5vega avatar joel5vega commented on September 15, 2024

It seems to be in src layout, how should we address this issue?
image

from sugar.

xmnlab avatar xmnlab commented on September 15, 2024

Let me know if you need more details ou explanations please

from sugar.

joel5vega avatar joel5vega commented on September 15, 2024

I did the changes in this file:
image
But I am not able to pass the precommit stage.

image
Checking with the examples it seems to have a similar configuration
image
What can be the problem?

from sugar.

xmnlab avatar xmnlab commented on September 15, 2024

The git commit command is running the pre commit under the hood. The pre-commit command runs a bunch of tools. But you are using the base conda environment, and you probably don't have that tools installed there.

First activate your conda environment for sugar. That should do the trick.

from sugar.

xmnlab avatar xmnlab commented on September 15, 2024

@joel5vega , we just merged a PR for the same purpose for makim here: https://github.com/osl-incubator/makim/pull/63/files
you can use that as a reference

from sugar.

joel5vega avatar joel5vega commented on September 15, 2024

image
I have updated this in commit 1580480 from my fork.
i think it will be visible in my next PR

from sugar.

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.