Code Monkey home page Code Monkey logo

Comments (6)

N1m6 avatar N1m6 commented on August 23, 2024 1

Hello. It's a common practice to place test in the same directory as core code package, i.e. in the root repo. So test is not a part of main package. When writing tests one needs to import functionality from the main package. The problem that your main package open-mcr/code conflicts with this python module when imported as import code. It would be very helpful for this issue, and probably for some future ones, to refactor open-mcr/code to valid python identifier like open-mcr/open_mcr, so core package may be safely imported as import open_mcr.

from open-mcr.

iansan5653 avatar iansan5653 commented on August 23, 2024

That's a great point. Another option could be to rename code to src - I've seen that pattern in a couple of projects as well.

from open-mcr.

N1m6 avatar N1m6 commented on August 23, 2024

I'm ready to begin writing test with pytest module, but renaming source package name came out to be vital for running pytest. Neither with tests placed in a sibling package nor with test placed in a child package like open-mcr/code/test it is possible to ignore conflict with python's own code.
Do you want me to make a PR to release/1.2.0 for a change of this kind?

from open-mcr.

iansan5653 avatar iansan5653 commented on August 23, 2024

Hi, sorry for the delay in responding. I think we should rename the code package to src. I just released 1.2.0 but you can just open pull requests to master with any changes.

from open-mcr.

N1m6 avatar N1m6 commented on August 23, 2024

Hello. There are big changes in my life recently. I may be absent for a couple of months. I will be ready to work on this when i get everything sorted out.

from open-mcr.

iansan5653 avatar iansan5653 commented on August 23, 2024

No worries! I may make some progress on this particular task but there will always be more to work on if you want to in the future. Thanks so much for the great work so far, and I hope everything works out well for you.

from open-mcr.

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.