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

Spelling #5764

Merged
merged 27 commits into from
Jan 12, 2023
Merged

Spelling #5764

merged 27 commits into from
Jan 12, 2023

Conversation

jsoref
Copy link
Contributor

@jsoref jsoref commented Dec 19, 2022

This PR corrects misspellings identified by the check-spelling action.

The misspellings have been reported at https://github.com/jsoref/scrapy/actions/runs/3727974993

The action reports that the changes in this PR would make it happy: https://github.com/jsoref/scrapy/actions/runs/3727977653

Note: this PR does not include the action. If you're interested in running a spell check on every PR and push, that can be offered separately.

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
- replace unencodable codepoints with html entities. fixes #562 and #285 (:commit:`5f87b17`)
- replace unencodeable codepoints with html entities. fixes #562 and #285 (:commit:`5f87b17`)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

some projects don't like changing changelogs.

I'm trying to be fairly conservative about my changes..

Comment on lines -597 to +608
def __init__(self, parslet_json_code):
parslet = json.loads(parselet_json_code)
def __init__(self, parsley_json_code):
parsley = json.loads(parselet_json_code)
class ParsleyItem(Item):
def __init__(self, *a, **kw):
for name in parslet.keys():
for name in parsley.keys():
self.fields[name] = Field()
super(ParsleyItem, self).__init__(*a, **kw)
self.item_class = ParsleyItem
self.parsley = PyParsley(parslet, output='python')
self.parsley = PyParsley(parsley, output='python')

def process_response(self, response, request, spider):
return self.item_class(self.parsly.parse(string=response.body))
return self.item_class(self.parsley.parse(string=response.body))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

notable...

@codecov
Copy link

codecov bot commented Dec 19, 2022

Codecov Report

Merging #5764 (41734bb) into master (034dc8f) will increase coverage by 0.01%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #5764      +/-   ##
==========================================
+ Coverage   84.82%   84.84%   +0.01%     
==========================================
  Files         162      162              
  Lines       10974    10974              
  Branches     1795     1795              
==========================================
+ Hits         9309     9311       +2     
+ Misses       1394     1393       -1     
+ Partials      271      270       -1     
Impacted Files Coverage Δ
scrapy/cmdline.py 67.96% <ø> (ø)
scrapy/core/downloader/webclient.py 94.65% <ø> (ø)
scrapy/extensions/httpcache.py 95.45% <ø> (ø)
scrapy/http/request/form.py 95.48% <ø> (ø)
scrapy/pipelines/images.py 26.47% <0.00%> (ø)
scrapy/utils/response.py 90.19% <ø> (ø)
scrapy/utils/url.py 100.00% <ø> (ø)
scrapy/core/downloader/__init__.py 92.48% <0.00%> (+1.50%) ⬆️

@@ -316,7 +316,7 @@ def _make_read_only(path: Path):
self.assertEqual(actual_permissions, expected_permissions)

def test_startproject_permissions_unchanged_in_destination(self):
"""Check that pre-existing folders and files in the destination folder
"""Check that preexisting folders and files in the destination folder
Copy link
Member

Choose a reason for hiding this comment

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

This one seems arguable, but no strong opinion either way.

Same applies to “nonexistent” later on.

@Gallaecio
Copy link
Member

Closing and reopening to re-trigger CI jobs…

@Gallaecio Gallaecio closed this Jan 11, 2023
@Gallaecio Gallaecio reopened this Jan 11, 2023
@wRAR wRAR merged commit 2944894 into scrapy:master Jan 12, 2023
@jsoref jsoref deleted the spelling branch January 12, 2023 19:18
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