Skip to content

Commit

Permalink
Pyre Configurationless migration for] [batch:230/244]
Browse files Browse the repository at this point in the history
Reviewed By: connernilsen

Differential Revision: D54560932

fbshipit-source-id: 8d3a15fa19135f26078d6945421b08a89163b791
  • Loading branch information
generatedunixname89002005287564 authored and facebook-github-bot committed Mar 6, 2024
1 parent ee1d30b commit d8ad406
Show file tree
Hide file tree
Showing 52 changed files with 104 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sapp/bulk_saver.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

"""Bulk saving objects for performance
"""

Expand Down
2 changes: 2 additions & 0 deletions sapp/cli.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 logging
import os
from typing import Dict, Type
Expand Down
2 changes: 2 additions & 0 deletions sapp/cli_lib.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 logging
import os
import pathlib
Expand Down
2 changes: 2 additions & 0 deletions sapp/db.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

"""
This file defines the underlying db used by SAPP library.
"""
Expand Down
2 changes: 2 additions & 0 deletions sapp/db_support.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

import logging
Expand Down
2 changes: 2 additions & 0 deletions sapp/errors.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

TYPECHECK_ERROR = 102


Expand Down
2 changes: 2 additions & 0 deletions sapp/filesystem.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 os
from pathlib import Path
from typing import List, Optional
Expand Down
2 changes: 2 additions & 0 deletions sapp/iterutil.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 itertools
from typing import Iterable, Iterator, List, TypeVar

Expand Down
2 changes: 2 additions & 0 deletions sapp/lint.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 json
from operator import itemgetter
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions sapp/operating_system.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

"""
Operating system-related utilities.
"""
Expand Down
2 changes: 2 additions & 0 deletions sapp/pipeline/__init__.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 logging
import sys
from abc import ABCMeta, abstractmethod
Expand Down
2 changes: 2 additions & 0 deletions sapp/pipeline/add_features.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 logging
from typing import List, Optional, Set, Tuple

Expand Down
2 changes: 2 additions & 0 deletions sapp/pipeline/add_reverse_traces.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 logging
from collections import deque
from typing import Set, Tuple
Expand Down
2 changes: 2 additions & 0 deletions sapp/pipeline/base_parser.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

"""Abstract Parser for Zoncolan like output"""

import json
Expand Down
2 changes: 2 additions & 0 deletions sapp/pipeline/create_database.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 logging
from typing import Tuple

Expand Down
2 changes: 2 additions & 0 deletions sapp/pipeline/database_saver.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

#!/usr/bin/env python3

import collections
Expand Down
2 changes: 2 additions & 0 deletions sapp/pipeline/issue_callable_filter.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 Set, Tuple

from . import DictEntries, ParseIssueTuple, PipelineStep, Summary
Expand Down
2 changes: 2 additions & 0 deletions sapp/pipeline/issue_handle_filter.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 Set, Tuple

from . import DictEntries, ParseIssueTuple, PipelineStep, Summary
Expand Down
2 changes: 2 additions & 0 deletions sapp/pipeline/mariana_trench_parser.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 json
import logging
import sys
Expand Down
2 changes: 2 additions & 0 deletions sapp/pipeline/mariana_trench_parser_objects.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 re

Expand Down
2 changes: 2 additions & 0 deletions sapp/pipeline/meta_run_issue_duplicate_filter.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 logging
from typing import Tuple

Expand Down
2 changes: 2 additions & 0 deletions sapp/pipeline/model_generator.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 datetime

import json
Expand Down
2 changes: 2 additions & 0 deletions sapp/pipeline/parallel_parser.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 logging
from multiprocessing import Pool
from typing import Iterable, List, Set, Tuple, Type, Union
Expand Down
2 changes: 2 additions & 0 deletions sapp/pipeline/pysa_taint_parser.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

"""Parse Pysa/Taint output for Zoncolan processing"""

import json
Expand Down
2 changes: 2 additions & 0 deletions sapp/pipeline/tests/issue_callable_filter_test.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 unittest import TestCase

from .. import ParseIssueTuple, Pipeline
Expand Down
2 changes: 2 additions & 0 deletions sapp/pipeline/tests/issue_handle_filter_test.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 unittest import TestCase

from .. import ParseIssueTuple, Pipeline
Expand Down
2 changes: 2 additions & 0 deletions sapp/pipeline/tests/test_mariana_trench_parser.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 io
import unittest
from typing import Iterable, Union
Expand Down
2 changes: 2 additions & 0 deletions sapp/pipeline/tests/test_pysa_taint_parser.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 io
import sys
import unittest
Expand Down
2 changes: 2 additions & 0 deletions sapp/pipeline/tests/warning_code_filter_test.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 unittest import TestCase

from .. import ParseIssueTuple, Pipeline
Expand Down
2 changes: 2 additions & 0 deletions sapp/pipeline/trim_trace_graph.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 logging
from typing import Tuple

Expand Down
2 changes: 2 additions & 0 deletions sapp/pipeline/warning_code_filter.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 Set, Tuple

from . import DictEntries, ParseIssueTuple, PipelineStep, Summary
Expand Down
2 changes: 2 additions & 0 deletions sapp/sharded_files.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 fnmatch
import os
import re
Expand Down
2 changes: 2 additions & 0 deletions sapp/tests/bulk_saver_test.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 unittest import TestCase

from pyre_extensions import none_throws
Expand Down
2 changes: 2 additions & 0 deletions sapp/tests/cli_test.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 contextlib
import os
import tempfile
Expand Down
2 changes: 2 additions & 0 deletions sapp/tests/db_support_test.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 unittest import TestCase

from ..db_support import DBID
Expand Down
2 changes: 2 additions & 0 deletions sapp/tests/decorators_test.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 Generator
from unittest import mock, TestCase

Expand Down
2 changes: 2 additions & 0 deletions sapp/tests/filter_test.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 json
from unittest import TestCase

Expand Down
2 changes: 2 additions & 0 deletions sapp/tests/iterutil_test.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 unittest import TestCase

from ..iterutil import split_every
Expand Down
2 changes: 2 additions & 0 deletions sapp/tests/primary_key_generator_test.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 unittest import TestCase

from tools.sapp.sapp.models import IssueDBID, SharedText, TraceFrame
Expand Down
2 changes: 2 additions & 0 deletions sapp/tests/sharded_files/sharded_files_test.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 os
import unittest

Expand Down
2 changes: 2 additions & 0 deletions sapp/trimmed_trace_graph.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 logging
from collections import Counter
from dataclasses import dataclass
Expand Down
2 changes: 2 additions & 0 deletions sapp/ui/filter_predicates.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

import re
Expand Down
2 changes: 2 additions & 0 deletions sapp/ui/interactive.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

import builtins
Expand Down
2 changes: 2 additions & 0 deletions sapp/ui/issues.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 List, Optional, Set
Expand Down
Loading

0 comments on commit d8ad406

Please sign in to comment.