Skip to content

Commit ed3d251

Browse files
Bump pylint from 2.5.3 to 2.6.0 (#62)
* Bump pylint from 2.5.3 to 2.6.0 Bumps [pylint](https://github.com/PyCQA/pylint) from 2.5.3 to 2.6.0. - [Release notes](https://github.com/PyCQA/pylint/releases) - [Changelog](https://github.com/PyCQA/pylint/blob/master/ChangeLog) - [Commits](pylint-dev/pylint@pylint-2.5.3...pylint-2.6.0) Signed-off-by: dependabot-preview[bot] <[email protected]> * Fix linter errors Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Clementine Urquizar <[email protected]>
1 parent d973df7 commit ed3d251

File tree

7 files changed

+56
-94
lines changed

7 files changed

+56
-94
lines changed

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ meilisearch = "==0.12.3"
1111
requests-iap = "==0.2.0"
1212

1313
[dev-packages]
14-
pylint = "==2.5.3"
14+
pylint = "==2.6.0"
1515

1616
[requires]
1717
python_version = "3.8"

Pipfile.lock

Lines changed: 47 additions & 85 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scraper/src/config/config_loader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def _load_config(self, config):
100100
self.config_content = copy.deepcopy(data)
101101

102102
return data
103-
except ValueError:
104-
raise ValueError('CONFIG is not a valid JSON')
103+
except ValueError as value_error:
104+
raise ValueError('CONFIG is not a valid JSON') from value_error
105105
sys.exit(EXIT_CODE_WRONG_CONFIG)
106106

107107
def _parse(self):

scraper/src/custom_dupefilter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def custom_request_fingerprint(self, request, include_headers=None,
5757
return cache[include_headers]
5858

5959
def __init__(self, path=None, debug=False, use_anchors=False):
60-
super(CustomDupeFilter, self).__init__(path=path, debug=debug)
60+
super().__init__(path=path, debug=debug)
6161
# Spread config bool
6262
self.use_anchors = use_anchors
6363
self.fingerprints_with_scheme = set() # This set will not be scheme agnostic

scraper/src/documentation_spider.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def __init__(self, config, meilisearch_helper, strategy, *args, **kwargs):
8080
self.remove_get_params = config.remove_get_params
8181
self.strict_redirect = config.strict_redirect
8282
self.nb_hits_max = config.nb_hits_max
83-
super(DocumentationSpider, self).__init__(*args, **kwargs)
83+
super().__init__(*args, **kwargs)
8484

8585
# Get rid of scheme consideration
8686
# Start_urls must stays authentic URL in order to be reached, we build agnostic scheme regex based on those URL
@@ -120,7 +120,7 @@ def __init__(self, config, meilisearch_helper, strategy, *args, **kwargs):
120120
self.force_sitemap_urls_crawling = config.force_sitemap_urls_crawling
121121

122122
# END _init_ part from SitemapSpider
123-
super(DocumentationSpider, self)._compile_rules()
123+
super()._compile_rules()
124124

125125
def start_requests(self):
126126
# We crawl according to the sitemap

scraper/src/js_executor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ def execute(self, url, js):
1818
try:
1919
parsed_result = json.loads(result)
2020
return parsed_result
21-
except ValueError:
22-
raise ValueError('CONFIG is not a valid JSON')
21+
except ValueError as value_error:
22+
raise ValueError('CONFIG is not a valid JSON') from value_error

scraper/src/strategies/default_strategy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class DefaultStrategy(AbstractStrategy):
2020
dom = None
2121

2222
def __init__(self, config):
23-
super(DefaultStrategy, self).__init__(config)
23+
super().__init__(config)
2424
self.levels = ['lvl0', 'lvl1', 'lvl2', 'lvl3', 'lvl4', 'lvl5', 'lvl6']
2525
self.global_content = {}
2626
self.page_rank = {}

0 commit comments

Comments
 (0)