Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change toml file read to actually use toml instead of configparser #219

Merged
merged 6 commits into from
Mar 8, 2021
Merged

Change toml file read to actually use toml instead of configparser #219

merged 6 commits into from
Mar 8, 2021

Conversation

alexandrebarbaruiva
Copy link
Contributor

@alexandrebarbaruiva alexandrebarbaruiva commented Mar 2, 2021

Related: #218

@codecov-io
Copy link

codecov-io commented Mar 6, 2021

Codecov Report

Merging #219 (b6de37e) into master (6ec7c0b) will increase coverage by 0.29%.
The diff coverage is 94.11%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #219      +/-   ##
==========================================
+ Coverage   80.85%   81.15%   +0.29%     
==========================================
  Files           7        7              
  Lines         444      451       +7     
==========================================
+ Hits          359      366       +7     
  Misses         85       85              
Impacted Files Coverage Δ
setup.py 100.00% <ø> (ø)
ipdb/__main__.py 68.22% <90.90%> (+1.20%) ⬆️
tests/test_config.py 95.88% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6ec7c0b...b6de37e. Read the comment docs.

@gotcha
Copy link
Owner

gotcha commented Mar 8, 2021

Released as https://pypi.org/project/ipdb/0.13.6/

elif filepath.endswith('pyproject.toml'):
import toml
toml_file = toml.load(filepath)
if "ipdb" in toml_file["tool"]:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line here breaks the use of ipdb when pyproject.toml does not contain a tool section. See #227.

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.

None yet

4 participants