Comments (4)
I really like the proposal and I agree with you that it would be great to use a format similar to what flake8/Ruff use. One caveat though; how do we deal with obsolete dependencies? I guess for those we would display the specific line in pyproject.toml
or requirements.txt
where the dependency was added? This is not something we currently store somewhere, so we would have to add that information to the Dependency
object.
e.g.
pyproject.toml:13:11: DEP001 `hello` is obsolete; it is listed as a dependency but it is never imported
from deptry.
I really like the proposal and I agree with you that it would be great to use a format similar to what flake8/Ruff use. One caveat though; how do we deal with obsolete dependencies? I guess for those we would display the specific line in
pyproject.toml
orrequirements.txt
where the dependency was added? This is not something we currently store somewhere, so we would have to add that information to theDependency
object.e.g.
pyproject.toml:13:11: DEP001 `hello` is obsolete; it is listed as a dependency but it is never imported
Yeah, I'm not sure that we have the ability to retrieve the line/column in all cases for obsolete dependencies (pyproject.toml
format + requirements.txt
format), but having at least the file without the line/columns might be an ok tradeoff.
I'll see if we can have everything we need, as it would be ideal, otherwise I think we could live with not having the line/column for this specific case.
from deptry.
Let me know if this is something that makes sense, and which format you think is a better option (including some outside of the proposals). I already have a branch ready for the implementation, that I could adapt depending on the format we decide to go with.
from deptry.
but having at least the file without the line/columns might be an ok tradeoff.
Completely agree!
from deptry.
Related Issues (20)
- Drop support for Python 3.7 HOT 2
- Release 0.9.0 HOT 3
- Ignore specific files/lines when ignoring issues HOT 3
- Release 0.10.0 HOT 7
- Replace the word 'obsolete' with 'unused' HOT 2
- How to use the tool when no virtual environment is being used? HOT 2
- Output action items for users when some dependency issues are found HOT 1
- Release 0.11.0 HOT 1
- Retrieve development dependencies from all dependencies groups in Poetry HOT 2
- Replace `--ignore-*` flags with `select` (and optionally `ignore`.) HOT 2
- Potential DEP005: Detect Poetry `extras` that are not listed under dependencies. HOT 3
- The CommaSeparatedTupleParamType's error is too specific
- Determine naming convention for issues/violations/errors/checks HOT 3
- Python-* and *-python named packages are not well recognized HOT 8
- pre-commit hook requires deptry to be globally installed HOT 2
- KeyError when pyproject.toml dependencies are dynamically read from requirements.txt HOT 2
- Release 0.12.0 HOT 2
- Feature Request Summary
- Support for Django HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deptry.