GithubHelp home page GithubHelp logo

Comments (6)

bmrobin avatar bmrobin commented on September 21, 2024 2

awesome that works, thank you

from deptry.

fpgmaas avatar fpgmaas commented on September 21, 2024

Thanks for raising this issue and the clear screenshot, will look into it right now!

from deptry.

fpgmaas avatar fpgmaas commented on September 21, 2024

I found the problem, which is this line of code:

https://github.com/fpgmaas/deptry/blob/main/deptry/dependency_specification_detector.py#L61

This should be changed to

if os.path.isfile(self.requirements_txt):

I will fix this ASAP.

from deptry.

fpgmaas avatar fpgmaas commented on September 21, 2024

Additionally, deptry expects all options as relative to the first argument, or in your case crop. So in your case, it would work with

deptry . -rt etc/requirements.txt --extend-exclude some_dir,some_file

Where some_dir and some_file are directories that should not be scanned.

I can see that this is a bit confusing, and it's also poorly documented. I think that the way you are trying to use it actually makes more sense. I will consider changing this as well.

from deptry.

bmrobin avatar bmrobin commented on September 21, 2024

gotcha, thanks for the explanation!

from deptry.

fpgmaas avatar fpgmaas commented on September 21, 2024

@bmrobin Fixed in release 0.4.2. If you want and have the time, please give it a try with the command from my previous comment and let me know if it fixed your issue.

from deptry.

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.