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

1020 spider committee on design #1029

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

joshagoldstein
Copy link

@joshagoldstein joshagoldstein commented Apr 14, 2022

Summary

Issue: #1020

Checklist

All checks are run in GitHub Actions. You'll be able to see the results of the checks at the bottom of the pull request page after it's been opened, and you can click on any of the specific checks listed to see the output of each step and debug failures.

  • Tests are implemented
  • All tests are passing
  • Style checks run (see documentation for more details)
  • Style checks are passing
  • Code comments from template removed

Questions

  • When running iSort, it says there is nothing to do (but runs with no error)

@LienDang
Copy link

LienDang commented Apr 15, 2022

@joshagoldstein
Re iSort, if you are following the docs here, it missed the ending dot .
The complete commands are:

pipenv run isort .  # to sort the imports 
pipenv run isort . --check-only  # to show the errors on the imports order without fixing them

The correct commands are on the main branch. Looks like the web site reflects the master branch though.

@joshagoldstein
Copy link
Author

I fixed all the comments above. Please let me know if everything else looks good.

@LienDang
Copy link

Thanks @joshagoldstein. Looks good to me now!

@joshagoldstein
Copy link
Author

Hi, I see that some checks were not successful. What can I do to fix this?

@LienDang
Copy link

@joshagoldstein In your development environment, please run the linters without --check or --check-only flag so they can fix the errors for you:

pipenv run isort .
pipenv run black .
pipenv run flake8 .

@joshagoldstein
Copy link
Author

Hi, I ran all of those commands, and everything runs without error, isort just says it skipped one file. Additionally, looking at the error on the CI:
ERROR: /home/runner/work/city-scrapers/city-scrapers/city_scrapers/spiders/chi_pubhealth.py Imports are incorrectly sorted and/or formatted.

chi_pubhealth.py is not a file I have touched so is this not my error?

@LienDang
Copy link

@joshagoldstein The linter errors are not your fault. Someone merged the code into the main branch without checking the Actions' CI errors, probably this PR Fix for CHI Pub health spider with the failing CI. Feel free to clean up the linter errors in this PR. Thanks!

@joshagoldstein
Copy link
Author

When I try to run isort locally, I get a broken path error which I am not sure how to fix. Do you have any recommendations?

@LienDang
Copy link

When I try to run isort locally, I get a broken path error which I am not sure how to fix. Do you have any recommendations?

Can you show the error logs?

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