Skip to content

Commit c207a5f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b64c78f commit c207a5f

7 files changed

Lines changed: 16 additions & 17 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ If applicable, add screenshots to help explain your problem.
2525

2626
**Desktop (please complete the following information):**
2727

28-
- OS: [e.g. iOS]
29-
- Browser [e.g. chrome, safari]
30-
- Version [e.g. 22]
28+
- OS: [e.g. iOS]
29+
- Browser [e.g. chrome, safari]
30+
- Version [e.g. 22]
3131

3232
**Smartphone (please complete the following information):**
3333

34-
- Device: [e.g. iPhone6]
35-
- OS: [e.g. iOS8.1]
36-
- Browser [e.g. stock browser, safari]
37-
- Version [e.g. 22]
34+
- Device: [e.g. iPhone6]
35+
- OS: [e.g. iOS8.1]
36+
- Browser [e.g. stock browser, safari]
37+
- Version [e.g. 22]
3838

3939
**Additional context**
4040
Add any other context about the problem here.

tests/test_twarc2sql.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
"""Tests for `twarc2sql` package."""
44

5-
65
import pandas as pd
76
import pytest
87

twarc2sql/db_utils/db_access.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Module for accessing the database.
33
4-
Module contains functions for creating and deleting databases & their
4+
Module contains functions for creating and deleting databases & their
55
tables as defined in models.py.
66
77
"""

twarc2sql/db_utils/models.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
The SQLAlchemy models for creating the database tables.
3-
The models are based on the Twitter API v2 Tweet object.
4-
It is an opnionated normalization of the Tweet object
3+
The models are based on the Twitter API v2 Tweet object.
4+
It is an opnionated normalization of the Tweet object
55
to make it easier to query the database.
66
"""
77

@@ -84,7 +84,7 @@ def clean_text(self):
8484
Remove newlines from the tweet text.
8585
"""
8686
if self.text:
87-
self.text = self.text.replace("\x00", "\uFFFD")
87+
self.text = self.text.replace("\x00", "\ufffd")
8888

8989

9090
class Author(Base):
@@ -121,7 +121,7 @@ def clean_text(self):
121121
Remove newlines from the tweet text.
122122
"""
123123
if self.description:
124-
self.description = self.description.replace("\x00", "\uFFFD")
124+
self.description = self.description.replace("\x00", "\ufffd")
125125

126126

127127
class Retweet_Tweet_Mapping(Base):

twarc2sql/db_utils/tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def config_file_path() -> str:
2525
@pytest.fixture(scope="module")
2626
def uri(config_file_path):
2727
"""
28-
uri _summary_.
28+
Uri _summary_.
2929
3030
returns a URI
3131
"""
@@ -43,7 +43,7 @@ def uri(config_file_path):
4343
@pytest.fixture(scope="module")
4444
def engine(config_file_path) -> sa.engine.base.Engine:
4545
"""
46-
engine _summary_.
46+
Engine _summary_.
4747
4848
returns a sqlalchemy engine
4949

twarc2sql/db_utils/tests/test_db_access.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Tests for the db_access module.
33
4-
The tests are run using pytest. To run the tests, use the following command from the
4+
The tests are run using pytest. To run the tests, use the following command from the
55
root directory of the project:
66
77
pytest twarc2sql/db_utils/tests/test_db_access.py

twarc2sql/file_utils/file_to_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""file_to_object.py convert a file to objects to be processed.
22
3-
This module contains functions to convert a file to objects to
3+
This module contains functions to convert a file to objects to
44
be processed for each endpoint.
55
"""
66

0 commit comments

Comments
 (0)