Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ If applicable, add screenshots to help explain your problem.

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

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

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

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# pre-commit install

repos:
- repo: https://github.com/psf/black
rev: 24.10.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.12.0
hooks:
- id: black
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.19.1
rev: 1.20.0
hooks:
- id: blacken-docs
- repo: https://github.com/pre-commit/mirrors-prettier
Expand All @@ -17,7 +17,7 @@ repos:
files: \.(html|md|yml|yaml)
args: [--prose-wrap=preserve]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.4
rev: v0.14.10
hooks:
- id: ruff
args:
Expand Down
2 changes: 1 addition & 1 deletion twarc2sql/db_utils/db_access.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Module for accessing the database.

Module contains functions for creating and deleting databases & their
Module contains functions for creating and deleting databases & their
tables as defined in models.py.

"""
Expand Down
8 changes: 4 additions & 4 deletions twarc2sql/db_utils/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
The SQLAlchemy models for creating the database tables.
The models are based on the Twitter API v2 Tweet object.
It is an opnionated normalization of the Tweet object
The models are based on the Twitter API v2 Tweet object.
It is an opnionated normalization of the Tweet object
to make it easier to query the database.
"""

Expand Down Expand Up @@ -84,7 +84,7 @@ def clean_text(self):
Remove newlines from the tweet text.
"""
if self.text:
self.text = self.text.replace("\x00", "\uFFFD")
self.text = self.text.replace("\x00", "\ufffd")


class Author(Base):
Expand Down Expand Up @@ -121,7 +121,7 @@ def clean_text(self):
Remove newlines from the tweet text.
"""
if self.description:
self.description = self.description.replace("\x00", "\uFFFD")
self.description = self.description.replace("\x00", "\ufffd")


class Retweet_Tweet_Mapping(Base):
Expand Down
4 changes: 2 additions & 2 deletions twarc2sql/db_utils/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def config_file_path() -> str:
@pytest.fixture(scope="module")
def uri(config_file_path):
"""
uri _summary_.
Uri _summary_.

returns a URI
"""
Expand All @@ -43,7 +43,7 @@ def uri(config_file_path):
@pytest.fixture(scope="module")
def engine(config_file_path) -> sa.engine.base.Engine:
"""
engine _summary_.
Engine _summary_.

returns a sqlalchemy engine

Expand Down
2 changes: 1 addition & 1 deletion twarc2sql/db_utils/tests/test_db_access.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Tests for the db_access module.

The tests are run using pytest. To run the tests, use the following command from the
The tests are run using pytest. To run the tests, use the following command from the
root directory of the project:

pytest twarc2sql/db_utils/tests/test_db_access.py
Expand Down
2 changes: 1 addition & 1 deletion twarc2sql/file_utils/file_to_object.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""file_to_object.py convert a file to objects to be processed.

This module contains functions to convert a file to objects to
This module contains functions to convert a file to objects to
be processed for each endpoint.
"""

Expand Down
Loading