Skip to content

Commit 45303b8

Browse files
committed
black
1 parent 7e463cc commit 45303b8

File tree

6 files changed

+5
-8
lines changed

6 files changed

+5
-8
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454

5555
- name: Install requirements.txt dependencies with pip
5656
run: |
57-
python -m pip install -e .
57+
python -m pip install -e .[test]
5858
5959
- name: Run posthog tests
6060
run: |

example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@
4444
posthog.set("new_distinct_id", {"current_browser": "Chrome"})
4545
posthog.set("new_distinct_id", {"current_browser": "Firefox"})
4646

47-
posthog.shutdown()
47+
posthog.shutdown()

posthog/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ def set(
119119
message_id=message_id,
120120
)
121121

122+
122123
def set_once(
123124
distinct_id, # type: str,
124125
properties=None, # type: Optional[Dict]

posthog/consumer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def next(self):
117117
return items
118118

119119
def request(self, batch):
120-
"""Attempt to upload the batch and retry before raising an error """
120+
"""Attempt to upload the batch and retry before raising an error"""
121121

122122
def fatal_exception(exc):
123123
if isinstance(exc, APIError):

posthog/test/test_client.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ def test_advanced_identify(self):
105105
self.assertEqual(msg["messageId"], "messageId")
106106
self.assertEqual(msg["distinct_id"], "distinct_id")
107107

108-
109108
def test_basic_set(self):
110109
client = self.client
111110
success, msg = client.set("distinct_id", {"trait": "value"})
@@ -135,7 +134,6 @@ def test_advanced_set(self):
135134
self.assertEqual(msg["messageId"], "messageId")
136135
self.assertEqual(msg["distinct_id"], "distinct_id")
137136

138-
139137
def test_basic_set_once(self):
140138
client = self.client
141139
success, msg = client.set_once("distinct_id", {"trait": "value"})

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
"isort",
2323
"pre-commit",
2424
],
25-
"test": [
26-
"mock>=2.0.0", "freezegun==0.3.15", "pylint", "flake8", "coverage"
27-
]
25+
"test": ["mock>=2.0.0", "freezegun==0.3.15", "pylint", "flake8", "coverage"],
2826
}
2927

3028
setup(

0 commit comments

Comments
 (0)