Skip to content

Added support for requirement.txt#87

Merged
fpgmaas merged 3 commits intomainfrom
develop
Sep 11, 2022
Merged

Added support for requirement.txt#87
fpgmaas merged 3 commits intomainfrom
develop

Conversation

@fpgmaas
Copy link
Owner

@fpgmaas fpgmaas commented Sep 11, 2022

PR Checklist

  • A description of the changes is added to the description of this PR.
  • If there is a related issue, make sure it is linked to this PR.
  • If you've fixed a bug or added code that should be tested, add tests!
  • Documentation in docs is updated

Description of changes

Florian Maas added 3 commits September 11, 2022 15:34
* added functionality to identify the dependency specification and added a requirements.txt parser
* added unit tests for requirements.txt parsing
* Added documentation, modified readme
* added check for node.level in importFrom ast objects
@codecov-commenter
Copy link

Codecov Report

Merging #87 (10baa25) into main (f1cbe09) will increase coverage by 2.1%.
The diff coverage is 96.9%.

@@           Coverage Diff           @@
##            main     #87     +/-   ##
=======================================
+ Coverage   92.6%   94.7%   +2.1%     
=======================================
  Files         24      28      +4     
  Lines        718     973    +255     
=======================================
+ Hits         665     922    +257     
+ Misses        53      51      -2     
Impacted Files Coverage Δ
deptry/cli_defaults.py 100.0% <ø> (ø)
deptry/dependency.py 97.6% <ø> (ø)
deptry/config.py 96.3% <86.3%> (-3.7%) ⬇️
deptry/dependency_specification_detector.py 88.5% <88.5%> (ø)
deptry/dependency_getter/requirements_txt.py 98.5% <98.5%> (ø)
deptry/dependency_getter/pyproject_toml.py 96.0% <100.0%> (ø)
deptry/import_parser.py 78.7% <100.0%> (ø)
deptry/python_file_finder.py 100.0% <100.0%> (ø)
tests/test_cli.py 100.0% <100.0%> (ø)
tests/test_config.py 100.0% <100.0%> (ø)
... and 5 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@fpgmaas fpgmaas merged commit 42c655e into main Sep 11, 2022
@fpgmaas fpgmaas deleted the develop branch September 11, 2022 15:24
fpgmaas added a commit that referenced this pull request Oct 2, 2022
* Added support for requirements.txt (#84)
* Solved bug with relative imports being marked as missing (#86)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should we add support for other dependency specifications than pyproject.toml, such as requirements.txt?

2 participants