Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

📝Polish docstrings #1

Merged
merged 2 commits into from
Oct 25, 2024
Merged
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 .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ on:

jobs:
build:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
env:
GITHUB_EVENT_NAME: ${{ github.event_name }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
python: "3.10"
python: "3.12"
- os: ubuntu-latest
python: "3.10"
python: "3.12"
pip-flags: "--pre"
timeout-minutes: 15

Expand Down
2 changes: 1 addition & 1 deletion findrefs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

Import the package:

>>> import findrefs as frefs
>>> import findrefs as fr

The `Reference` registry:

Expand Down
14 changes: 7 additions & 7 deletions findrefs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


class Reference(Record, CanValidate, TracksRun, TracksUpdates):
"""References.
"""References such as a publication or document, with unique identifiers and metadata.

Example:
>>> reference = Reference(
Expand All @@ -32,21 +32,21 @@ class Meta(Record.Meta, TracksRun.Meta, TracksUpdates.Meta):
uid: str = models.CharField(unique=True, max_length=12, default=ids.base62_12)
"""Universal id, valid across DB instances."""
name: str = models.CharField(max_length=255, default=None, db_index=True)
"""Title or name of the reference."""
"""Title or name of the reference document."""
abbr: str | None = models.CharField(
max_length=32, db_index=True, unique=True, null=True, default=None
)
"""A unique abbreviation."""
"""A unique abbreviation for the reference."""
url: str | None = models.URLField(max_length=255, null=True, default=None)
"""A URL to view."""
"""URL linking to the reference."""
pubmed_id: int | None = models.BigIntegerField(null=True, default=None)
"""A pudbmed ID."""
"""A PudMmed ID."""
doi: int | None = models.CharField(
max_length=255, null=True, default=None, db_index=True
)
"""A DOI."""
"""Digital Object Identifier (DOI) for the reference."""
text: str | None = models.TextField(null=True, default=None)
"""Text of the reference included in search, e.g. the abstract or the full-text."""
"""Text of the reference such as the abstract or the full-text to enable search."""
artifacts: Artifact = models.ManyToManyField(
Artifact, through="ArtifactReference", related_name="references"
)
Expand Down
Loading