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

Add pytest flake8 #665

Merged
merged 2 commits into from
May 14, 2020
Merged

Add pytest flake8 #665

merged 2 commits into from
May 14, 2020

Conversation

noviluni
Copy link
Collaborator

@noviluni noviluni commented May 2, 2020

Add pytest-flake8 pipeline.

Note when reviewing that this PR includes code from this PR to avoid conflicts: #664

@@ -314,7 +314,7 @@ def _get_datetime_obj(self, **params):
try:
return datetime(**params)
except ValueError as e:
error_text = getattr(e, 'message', None) or e.__str__()
error_text = e.__str__()
Copy link
Collaborator Author

@noviluni noviluni May 2, 2020

Choose a reason for hiding this comment

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

e.message was deprecated since Python 2.6 and we don't support Python versions below 2.7

@codecov
Copy link

codecov bot commented May 2, 2020

Codecov Report

Merging #665 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #665   +/-   ##
=======================================
  Coverage   95.23%   95.23%           
=======================================
  Files         302      302           
  Lines        2558     2558           
=======================================
  Hits         2436     2436           
  Misses        122      122           
Impacted Files Coverage Δ
dateparser/parser.py 98.93% <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 238d0db...226c0d0. Read the comment docs.

@Gallaecio
Copy link
Member

Are those Git submodules added on purpose? I’m not sure if I am reading the diff correctly.

@noviluni noviluni force-pushed the add_pytest_flake8 branch 3 times, most recently from 3644424 to 8b97e9d Compare May 11, 2020 21:15
@noviluni
Copy link
Collaborator Author

Hi @Gallaecio

I'm not sure why those git submodules were added 😅

I pushed a clean version of the branch, could you review it again?

Sorry for the inconvenience

tests/requirements.txt Outdated Show resolved Hide resolved
tests/requirements.txt Outdated Show resolved Hide resolved
tox.ini Outdated Show resolved Hide resolved
tox.ini Outdated Show resolved Hide resolved
@noviluni noviluni merged commit db4e3f3 into scrapinghub:master May 14, 2020
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.

2 participants