Skip to content

Commit

Permalink
Merge pull request #3 from RNKuhns/main
Browse files Browse the repository at this point in the history
Adding Missing build_tools directory
  • Loading branch information
RNKuhns authored Nov 6, 2023
2 parents 6a5556e + 7b8129e commit 61fbd8f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build_tools/fail_on_missing_init_files.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# Script to search for missing init FILES.
set -euxo pipefail

FILES=$( find ./dachshund -type d '!' -exec test -e "{}/__init__.py" ";" -not -path "**/__pycache__" -not -path "**/datasets/data*" -print )

if [[ -n "$FILES" ]]
then
echo "Missing __init__.py files detected in the following modules:"
echo "$FILES"
exit 1
fi
18 changes: 18 additions & 0 deletions dachshund/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env python3 -u
# copyright: dachshund, BSD-3-Clause License (see LICENSE file)
"""A little interface to access lots of data.
:mod:`dachshund` provides ightweight interface for accessing ag and econ data.
"""
from typing import List

__version__: str = "0.1.0"

__author__: List[str] = ["RNKuhns"]
__all__: List[str] = [
"get_default_config",
"get_config",
"set_config",
"reset_config",
"config_context",
]

0 comments on commit 61fbd8f

Please sign in to comment.