Skip to content

Commit

Permalink
Make mlflow test optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoV94 committed Dec 13, 2024
1 parent 45d03ea commit 4495252
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ ignore = [
"D",
"S101", # Use of assert
]
"tests/test_mlflow.py" = [
"E402", # Module level import not at top of file. Needed for importorskip
]
"scripts/*" = ["D"]

[tool.ruff.lint.pycodestyle]
Expand Down
5 changes: 4 additions & 1 deletion tests/test_mlflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import pytest

mlflow = pytest.importorskip("mlflow")

import json
import logging
from collections import namedtuple
from pathlib import Path

import arviz as az
import mlflow
import numpy as np
import pandas as pd
import pymc as pm
Expand Down

0 comments on commit 4495252

Please sign in to comment.