Skip to content

Commit

Permalink
Add missing docstrings for modules
Browse files Browse the repository at this point in the history
  • Loading branch information
clpo13 committed Nov 17, 2023
1 parent d2c6df9 commit d78f257
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 4 deletions.
11 changes: 8 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@
# You should have received a copy of the GNU General Public License
# along with Wikiget. If not, see <https://www.gnu.org/licenses/>.

# This is a stub file for older versions of pip, setuptools, etc. that aren't fully
# compatible with the latest Python packaging standards.
# See <https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html>
"""Configure the program for packaging.
This is a stub file for older versions of pip, setuptools, etc. that aren't fully
compatible with the latest Python packaging standards. Project metadata and dependencies
have been moved to pyproject.toml.
See <https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html> for info.
"""

from setuptools import setup

Expand Down
2 changes: 2 additions & 0 deletions src/wikiget/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with Wikiget. If not, see <https://www.gnu.org/licenses/>.

"""Handle API calls (via mwclient) for site and image information."""

import logging
from argparse import Namespace

Expand Down
2 changes: 2 additions & 0 deletions src/wikiget/dl.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with Wikiget. If not, see <https://www.gnu.org/licenses/>.

"""Prepare and process file downloads."""

import logging
import sys
from argparse import Namespace
Expand Down
2 changes: 2 additions & 0 deletions src/wikiget/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with Wikiget. If not, see <https://www.gnu.org/licenses/>.

"""Define exceptions specific to the program."""


class ParseError(Exception):
"""Raised when some input is unable to be parsed as valid."""
2 changes: 2 additions & 0 deletions src/wikiget/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with Wikiget. If not, see <https://www.gnu.org/licenses/>.

"""Define a File class for representing individual files to be downloaded."""

from pathlib import Path

from mwclient.image import Image
Expand Down
2 changes: 2 additions & 0 deletions src/wikiget/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with Wikiget. If not, see <https://www.gnu.org/licenses/>.

"""Configure program log configuration and adapters."""

from __future__ import annotations

import logging
Expand Down
2 changes: 2 additions & 0 deletions src/wikiget/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with Wikiget. If not, see <https://www.gnu.org/licenses/>.

"""Parse download targets and batch files."""

from __future__ import annotations

import fileinput
Expand Down
2 changes: 2 additions & 0 deletions src/wikiget/validations.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with Wikiget. If not, see <https://www.gnu.org/licenses/>.

"""Validate file and site input and verify file hashes."""

from __future__ import annotations

import hashlib
Expand Down
4 changes: 3 additions & 1 deletion src/wikiget/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@
# You should have received a copy of the GNU General Public License
# along with Wikiget. If not, see <https://www.gnu.org/licenses/>.

__version__ = "0.8.0"
"""Set the version string of the program."""

__version__ = "0.8.0.dev0"
2 changes: 2 additions & 0 deletions src/wikiget/wikiget.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with Wikiget. If not, see <https://www.gnu.org/licenses/>.

"""Set up the command-line interface and handle program start and exit."""

from __future__ import annotations

import argparse
Expand Down

0 comments on commit d78f257

Please sign in to comment.