Skip to content

Commit

Permalink
Pyre Configurationless migration for] [batch:2/15] (#2359)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #2359

Reviewed By: connernilsen

Differential Revision: D56081704

fbshipit-source-id: 7aa141b32ef5a08c0841e7bb856ea30e7c789242
  • Loading branch information
generatedunixname89002005287564 authored and facebook-github-bot committed Apr 13, 2024
1 parent c122890 commit c09963b
Show file tree
Hide file tree
Showing 22 changed files with 44 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ax/analysis/cross_validation_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-strict

from copy import deepcopy
from typing import Any, Dict, List, Optional

Expand Down
2 changes: 2 additions & 0 deletions ax/analysis/helpers/color_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-strict


from numbers import Real
from typing import Tuple
Expand Down
2 changes: 2 additions & 0 deletions ax/analysis/helpers/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-strict

import enum

# Constants used for numerous plots
Expand Down
2 changes: 2 additions & 0 deletions ax/analysis/helpers/cross_validation_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-strict

from typing import Any, Dict, List, Optional, Tuple

import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions ax/analysis/helpers/layout_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-strict

from typing import Any, Dict, List, Tuple, Type

import plotly.graph_objs as go
Expand Down
2 changes: 2 additions & 0 deletions ax/analysis/helpers/plot_data_df_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-strict

from typing import List, Set

import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions ax/analysis/helpers/plot_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-strict


from logging import Logger
from typing import Dict, List, Optional, Tuple, Union
Expand Down
2 changes: 2 additions & 0 deletions ax/analysis/helpers/scatter_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-strict

import numbers

from typing import Any, Dict, List, Optional, Tuple
Expand Down
2 changes: 2 additions & 0 deletions ax/analysis/helpers/tests/test_cross_validation_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-strict

import tempfile

import plotly.graph_objects as go
Expand Down
2 changes: 2 additions & 0 deletions ax/analysis/helpers/tests/test_cv_consistency_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-strict

import copy

import plotly.graph_objects as go
Expand Down
2 changes: 2 additions & 0 deletions ax/analysis/tests/test_cross_validation_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-strict

import plotly.graph_objects as go
from ax.analysis.cross_validation_plot import CrossValidationPlot

Expand Down
2 changes: 2 additions & 0 deletions ax/analysis/tests/test_predicted_outcomes_dot_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-strict


import unittest

Expand Down
2 changes: 2 additions & 0 deletions ax/benchmark/metrics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-strict
2 changes: 2 additions & 0 deletions ax/benchmark/metrics/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-strict

"""
Module containing the metric base classes for benchmarks. The key property of
a benchmark metric is whether it has a ground truth or not, which is indicated
Expand Down
2 changes: 2 additions & 0 deletions ax/benchmark/metrics/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-strict

from __future__ import annotations

from typing import Any, Optional
Expand Down
2 changes: 2 additions & 0 deletions ax/benchmark/metrics/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-strict

from typing import Optional

import pandas as pd
Expand Down
2 changes: 2 additions & 0 deletions ax/benchmark/runners/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-strict
2 changes: 2 additions & 0 deletions ax/benchmark/runners/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-strict

from abc import ABC, abstractmethod
from math import sqrt
from typing import Any, Dict, List, Optional, Tuple, Union
Expand Down
2 changes: 2 additions & 0 deletions ax/benchmark/runners/surrogate.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-strict

import warnings
from typing import Any, Dict, Iterable, List, Optional, Set, Tuple, Union

Expand Down
2 changes: 2 additions & 0 deletions ax/modelbridge/external_generation_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-strict

import time
from abc import ABC, abstractmethod
from logging import Logger
Expand Down
2 changes: 2 additions & 0 deletions ax/modelbridge/tests/test_external_generation_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-strict

from typing import List, Optional
from unittest.mock import MagicMock

Expand Down
2 changes: 2 additions & 0 deletions ax/modelbridge/tests/test_hierarchical_search_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-strict


from contextlib import ExitStack
from random import random
Expand Down

0 comments on commit c09963b

Please sign in to comment.