Skip to content

Commit f6ad80d

Browse files
authored
Use python 3.12 in circleci (#221)
* Use python 3.12 in circleci * assertEquals -> assertEqual * unpin pylint * make pylint happy
1 parent 2ca12d6 commit f6ad80d

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
- run:
1212
name: 'Setup virtual env'
1313
command: |
14-
uv venv --python 3.9 /usr/local/share/virtualenvs/tap-github
14+
uv venv --python 3.12 /usr/local/share/virtualenvs/tap-github
1515
source /usr/local/share/virtualenvs/tap-github/bin/activate
16-
uv pip install -U pip setuptools
16+
uv pip install -U setuptools
1717
uv pip install .[dev]
1818
- run:
1919
name: 'JSON Validator'
@@ -24,7 +24,7 @@ jobs:
2424
name: 'pylint'
2525
command: |
2626
source /usr/local/share/virtualenvs/tap-github/bin/activate
27-
pylint tap_github --disable 'missing-module-docstring,missing-function-docstring,missing-class-docstring,line-too-long,invalid-name,too-many-lines,consider-using-f-string,too-many-arguments,too-many-locals'
27+
pylint tap_github --disable 'missing-module-docstring,missing-function-docstring,missing-class-docstring,line-too-long,invalid-name,too-many-lines,consider-using-f-string,too-many-arguments,too-many-positional-arguments,too-many-locals,unnecessary-lambda-assignment,unspecified-encoding'
2828
- run:
2929
name: 'Unit Tests'
3030
command: |

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
# 3.3.1
4+
* Fix new pylint issues [#221](https://github.com/singer-io/tap-github/pull/221)
5+
36
# 3.3.0
47
* Adds `forced_replication_method` and `parent_tap_stream_id` as discoverable metadata [#220](https://github.com/singer-io/tap-github/pull/220)
58

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from setuptools import setup, find_packages
44

55
setup(name='tap-github',
6-
version='3.3.0',
6+
version='3.3.1',
77
description='Singer.io tap for extracting data from the GitHub API',
88
author='Stitch',
99
url='http://singer.io',
@@ -16,7 +16,7 @@
1616
],
1717
extras_require={
1818
'dev': [
19-
'pylint==2.6.2',
19+
'pylint',
2020
'ipdb',
2121
'nose',
2222
'requests-mock==1.9.3'

tap_github/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def extract_repos_from_config(self):
277277

278278
unique_repos = set()
279279
# Insert the duplicate repos found in the config repo_paths into duplicates
280-
duplicate_repos = [x for x in repo_paths if x in unique_repos or (unique_repos.add(x) or False)]
280+
duplicate_repos = [x for x in repo_paths if x in unique_repos or (unique_repos.add(x))]
281281
if duplicate_repos:
282282
LOGGER.warning("Duplicate repositories found: %s and will be synced only once.", duplicate_repos)
283283

tap_github/streams.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ def write_bookmarks(self, stream, selected_streams, bookmark_value, repo_path, s
125125
for child in stream_obj.children:
126126
self.write_bookmarks(child, selected_streams, bookmark_value, repo_path, state)
127127

128-
# pylint: disable=no-self-use
129128
def get_child_records(self,
130129
client,
131130
catalog,

tests/unittests/test_exception_handling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def test_error_message_and_call_count(self, mocked_parse_args, mocked_request, m
8989
self.assertEqual(str(e.exception), expected_error_message)
9090

9191
# Verify the call count for each error.
92-
self.assertEquals(call_count, mocked_request.call_count)
92+
self.assertEqual(call_count, mocked_request.call_count)
9393

9494
@mock.patch("tap_github.client.LOGGER.warning")
9595
def test_skip_404_error(self, mock_logger, mocked_parse_args, mocked_request, mock_verify_access, mock_sleep):

0 commit comments

Comments
 (0)