Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@peymanslh
Copy link
Member

I ran flake8 and fixed all issues raised by it.
In my next PR, I will add flake8 to pre-commit (I can't send that PR before this because pre-commit runs by tox and breaks CI)

The change in isort version is because of a bug that fixed in the latest release. link - issue link

@codecov
Copy link

codecov bot commented Feb 3, 2023

Codecov Report

Merging #536 (e28930a) into master (b2be12e) will decrease coverage by 0.03%.
The diff coverage is 90.00%.

❗ Current head e28930a differs from pull request most recent head f2b65c9. Consider uploading reports for the commit f2b65c9 to get more accurate results

@@            Coverage Diff             @@
##           master     #536      +/-   ##
==========================================
- Coverage   91.16%   91.13%   -0.03%     
==========================================
  Files          28       28              
  Lines        2670     2674       +4     
==========================================
+ Hits         2434     2437       +3     
- Misses        236      237       +1     
Impacted Files Coverage Δ
src/tablib/formats/_latex.py 100.00% <ø> (ø)
src/tablib/formats/_xlsx.py 96.96% <ø> (-0.04%) ⬇️
src/tablib/formats/_rst.py 95.12% <75.00%> (+0.03%) ⬆️
src/tablib/packages/dbfpy/record.py 76.38% <80.00%> (+0.33%) ⬆️
src/tablib/packages/dbfpy/fields.py 71.27% <87.50%> (ø)
src/tablib/packages/dbfpy/header.py 83.16% <90.00%> (-0.68%) ⬇️
src/tablib/core.py 85.01% <100.00%> (ø)
src/tablib/formats/_dbf.py 100.00% <100.00%> (ø)
src/tablib/formats/_ods.py 98.18% <100.00%> (ø)
src/tablib/packages/dbfpy/dbf.py 68.75% <100.00%> (ø)
... and 8 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@peymanslh peymanslh requested review from claudep and hugovk February 3, 2023 19:36
Copy link
Contributor

@claudep claudep left a comment

Choose a reason for hiding this comment

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

Minor things, but looks generally good, thanks!

# Act / Assert
with self.assertRaises(NotImplementedError):
output = utils.getDateTime(value)
_ = utils.getDateTime(value)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we even need the attribution here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, fixed it.

# for (_def, _dat) in zip(self.dbf.header.fields, self.fieldData):
#

# for (_def, _dat) in zip(self.dbf.header.fields, self.fieldData):
Copy link
Member

Choose a reason for hiding this comment

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

Do we even need this commented out code?

Copy link
Member Author

Choose a reason for hiding this comment

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

There are some other commented codes that are old
Can all of them be deleted?

Copy link
Contributor

Choose a reason for hiding this comment

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

Note that dbfpy is vendored code, we should make only minimal changes.

Copy link
Member Author

Choose a reason for hiding this comment

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

There are some one-line commented codes like this:

# return str(value)[:self.length].ljust(self.length)

What should I do about them?

@peymanslh
Copy link
Member Author

@claudep @hugovk
Thanks for your review, I applied your suggestion and squashed my commits.
Is there anything I need to change?

Copy link
Contributor

@claudep claudep left a comment

Choose a reason for hiding this comment

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

Thanks for your work!

@claudep claudep merged commit 8b9cf49 into jazzband:master Feb 8, 2023
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.

3 participants