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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ repos:
- id: sort-simple-yaml
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.13
rev: v0.16.5
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.19.1
rev: v2.3.1
hooks:
- id: mypy
- repo: https://github.com/sourcery-ai/sourcery
rev: v1.43.0
rev: v1.45.0
hooks:
- id: sourcery
args: [--diff=git diff HEAD, --no-summary]
Expand Down
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ For example, given the following normalized scripture reference for Genesis 1:1-
```python
import pythonbible as bible

reference = bible.NormalizedReference(bible.Book.GENESIS, 1, 1, 1, 4, bible.Book.GENESIS)
reference = bible.NormalizedReference(
bible.Book.GENESIS, 1, 1, 1, 4, bible.Book.GENESIS
)
verse_ids = bible.convert_reference_to_verse_ids(reference)
```

Expand All @@ -129,7 +131,16 @@ For example, the following list of verse ids represents the references Matthew 1
```python
import pythonbible as bible

verse_ids = [40018012, 40018013, 40018014, 42015003, 42015004, 42015005, 42015006, 42015007, ]
verse_ids = [
40018012,
40018013,
40018014,
42015003,
42015004,
42015005,
42015006,
42015007,
]
references = bible.convert_verse_ids_to_references(verse_ids)
```

Expand Down Expand Up @@ -175,7 +186,7 @@ formatted_reference = bible.format_scripture_references(references)
The resulting formatted reference should be:

```python
'Isaiah 55:13;Philippians 4:4-8'
"Isaiah 55:13;Philippians 4:4-8"
```

There are a couple of reference formatting features not yet implemented:
Expand All @@ -197,7 +208,7 @@ verse_text = bible.get_verse_text(1001001, version=bible.Version.KING_JAMES)
The resulting verse_text would be:

```python
'In the beginning God created the heaven and the earth.'
"In the beginning God created the heaven and the earth."
```

The version argument is optional and currently defaults to ``AMERICAN_STANDARD``. Ideally, that default will be configurable in a future release.
19 changes: 15 additions & 4 deletions pythonbible/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ For example, given the following normalized scripture reference for Genesis 1:1-
```python
import pythonbible as bible

reference = bible.NormalizedReference(bible.Book.GENESIS, 1, 1, 1, 4, bible.Book.GENESIS)
reference = bible.NormalizedReference(
bible.Book.GENESIS, 1, 1, 1, 4, bible.Book.GENESIS
)
verse_ids = bible.convert_reference_to_verse_ids(reference)
```

Expand All @@ -129,7 +131,16 @@ For example, the following list of verse ids represents the references Matthew 1
```python
import pythonbible as bible

verse_ids = [40018012, 40018013, 40018014, 42015003, 42015004, 42015005, 42015006, 42015007, ]
verse_ids = [
40018012,
40018013,
40018014,
42015003,
42015004,
42015005,
42015006,
42015007,
]
references = bible.convert_verse_ids_to_references(verse_ids)
```

Expand Down Expand Up @@ -175,7 +186,7 @@ formatted_reference = bible.format_scripture_references(references)
The resulting formatted reference should be:

```python
'Isaiah 55:13;Philippians 4:4-8'
"Isaiah 55:13;Philippians 4:4-8"
```

There are a couple of reference formatting features not yet implemented:
Expand All @@ -197,7 +208,7 @@ verse_text = bible.get_verse_text(1001001, version=bible.Version.KING_JAMES)
The resulting verse_text would be:

```python
'In the beginning God created the heaven and the earth.'
"In the beginning God created the heaven and the earth."
```

The version argument is optional and currently defaults to ``AMERICAN_STANDARD``. Ideally, that default will be configurable in a future release.