Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 5, 2024
1 parent 5d3021f commit 1c2949a
Show file tree
Hide file tree
Showing 32 changed files with 35 additions and 3 deletions.
1 change: 1 addition & 0 deletions development/testing/regression.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Create, run or investigate regression checks."""

import pickle
import socket

Expand Down
1 change: 1 addition & 0 deletions development/testing/testing_pull_request.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Run a series of tests that are required for any pull request to be merged."""

import socket

import click
Expand Down
1 change: 1 addition & 0 deletions docs/projects/_numerical_integration.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Auxiliary and plotting functions for the respy tutorial numerical integration."""

import matplotlib.pyplot as plt
from matplotlib import ticker

Expand Down
1 change: 1 addition & 0 deletions respy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
rp.<func>
"""

import pytest

from respy.config import ROOT_DIR
Expand Down
1 change: 1 addition & 0 deletions respy/_numba.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Special functions for using numba."""

import warnings

import numba as nb
Expand Down
1 change: 1 addition & 0 deletions respy/conditional_draws.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Everything related to conditional draws for the maximum likelihood estimation."""

import numpy as np
from estimagic.utilities import robust_cholesky
from numba import guvectorize
Expand Down
1 change: 1 addition & 0 deletions respy/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""General configuration for respy."""

from pathlib import Path

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions respy/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module includes code to configure pytest."""

import os

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions respy/data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Everything related to the original data from Keane and Wolpin (1997)."""

import numpy as np
import pandas as pd

Expand Down
1 change: 1 addition & 0 deletions respy/exogenous_processes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utils for the inclusion of exogenous processes."""

import functools

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions respy/interface.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""General interface functions for respy."""

import warnings

import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions respy/interpolate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module contains the code for approximate solutions to the DCDP."""

import warnings

import numba as nb
Expand Down
1 change: 1 addition & 0 deletions respy/likelihood.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Everything related to the estimation with maximum likelihood."""

import warnings
from functools import partial

Expand Down
1 change: 1 addition & 0 deletions respy/method_of_simulated_moments.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
of Asset Prices. Econometrica, 61(4), 929-952.
"""

import copy
import functools

Expand Down
1 change: 1 addition & 0 deletions respy/parallelization.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module contains the code to control parallel execution."""

import functools

import joblib
Expand Down
1 change: 1 addition & 0 deletions respy/pre_processing/data_checking.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test functions to ensure the validity of data."""

import numpy as np

from respy.shared import generate_column_dtype_dict_for_estimation
Expand Down
1 change: 1 addition & 0 deletions respy/pre_processing/model_checking.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Everything related to validate the model."""

import numba as nb
import numpy as np

Expand Down
7 changes: 4 additions & 3 deletions respy/pre_processing/model_processing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Process model specification files or objects."""

import copy
import itertools
import os
Expand Down Expand Up @@ -802,9 +803,9 @@ def _convert_labels_in_formulas_to_codes(options, optim_paras):

for choice in optim_paras["choices"]:
for i, formula in enumerate(options["negative_choice_set"].get(choice, [])):
options["negative_choice_set"][choice][
i
] = _replace_choices_and_observables_in_formula(formula, optim_paras)
options["negative_choice_set"][choice][i] = (
_replace_choices_and_observables_in_formula(formula, optim_paras)
)

return options

Expand Down
1 change: 1 addition & 0 deletions respy/pre_processing/process_covariates.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module comprises all functions which process the definition of covariates."""

import copy


Expand Down
1 change: 1 addition & 0 deletions respy/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import from respy itself. This is to prevent circular imports.
"""

import shutil

import numba as nb
Expand Down
1 change: 1 addition & 0 deletions respy/simulate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Everything related to the simulation of data with structural models."""

import functools
import warnings

Expand Down
1 change: 1 addition & 0 deletions respy/solve.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Everything related to the solution of a structural model."""

import functools

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions respy/state_space.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Everything related to the state space of a structural model."""

import itertools

import numba as nb
Expand Down
1 change: 1 addition & 0 deletions respy/tests/random_model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module contains the functions for the generation of random requests."""

import collections
import copy

Expand Down
1 change: 1 addition & 0 deletions respy/tests/test_flexible_choices.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Contains code for testing for flexible choices."""

import pandas as pd
import pytest

Expand Down
1 change: 1 addition & 0 deletions respy/tests/test_method_of_simulated_moments.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the msm interface of respy."""

import copy

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions respy/tests/test_model_processing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test model generation."""

import io
import textwrap

Expand Down
1 change: 1 addition & 0 deletions respy/tests/test_randomness.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module includes test to specifically test that randomness is held constant."""

import numpy as np
import pytest

Expand Down
1 change: 1 addition & 0 deletions respy/tests/test_regression.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Run a few regression tests."""

import pickle

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions respy/tests/test_replication_kw_94.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
181.
"""

import numpy as np
import pandas as pd
import pytest
Expand Down
1 change: 1 addition & 0 deletions respy/tests/test_simulate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the simulation routine."""

import numpy as np
import pandas as pd
import pytest
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The general package information for respy."""

from pathlib import Path

from setuptools import find_packages
Expand Down

0 comments on commit 1c2949a

Please sign in to comment.