diff --git a/eden/fs/cli/constants.py b/eden/fs/cli/constants.py index 37ec423836635..32df8c933a431 100644 --- a/eden/fs/cli/constants.py +++ b/eden/fs/cli/constants.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + SHUTDOWN_EXIT_CODE_NORMAL = 0 SHUTDOWN_EXIT_CODE_REQUESTED_SHUTDOWN = 0 SHUTDOWN_EXIT_CODE_NOT_RUNNING_ERROR = 2 diff --git a/eden/fs/cli/debug_windows.py b/eden/fs/cli/debug_windows.py index 15067598d726a..85ce967188d5d 100644 --- a/eden/fs/cli/debug_windows.py +++ b/eden/fs/cli/debug_windows.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + import argparse from pathlib import Path diff --git a/eden/fs/cli/doctor/check_filesystems.py b/eden/fs/cli/doctor/check_filesystems.py index b635258dfc62d..0fa9f818a47f2 100644 --- a/eden/fs/cli/doctor/check_filesystems.py +++ b/eden/fs/cli/doctor/check_filesystems.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + import hashlib import json import os diff --git a/eden/fs/cli/doctor/check_kerberos.py b/eden/fs/cli/doctor/check_kerberos.py index f3b95b41c2fef..6d32970435153 100644 --- a/eden/fs/cli/doctor/check_kerberos.py +++ b/eden/fs/cli/doctor/check_kerberos.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + import subprocess from eden.fs.cli.config import EdenInstance diff --git a/eden/fs/cli/doctor/check_os.py b/eden/fs/cli/doctor/check_os.py index 3b4cd7196831b..fee9dbc2a738b 100644 --- a/eden/fs/cli/doctor/check_os.py +++ b/eden/fs/cli/doctor/check_os.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + import platform import re import subprocess diff --git a/eden/fs/cli/doctor/check_recent_writes.py b/eden/fs/cli/doctor/check_recent_writes.py index c495188922fbd..c30f5fa056287 100644 --- a/eden/fs/cli/doctor/check_recent_writes.py +++ b/eden/fs/cli/doctor/check_recent_writes.py @@ -3,6 +3,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + from typing import Dict from eden.fs.cli.config import EdenInstance diff --git a/eden/fs/cli/doctor/check_redirections.py b/eden/fs/cli/doctor/check_redirections.py index a6344755b5356..402096be6cff3 100644 --- a/eden/fs/cli/doctor/check_redirections.py +++ b/eden/fs/cli/doctor/check_redirections.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + from eden.fs.cli import mtab from eden.fs.cli.config import EdenCheckout, EdenInstance diff --git a/eden/fs/cli/doctor/check_stale_mounts.py b/eden/fs/cli/doctor/check_stale_mounts.py index 2c14ac587e307..f679e2487e14c 100644 --- a/eden/fs/cli/doctor/check_stale_mounts.py +++ b/eden/fs/cli/doctor/check_stale_mounts.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + import errno import logging import os diff --git a/eden/fs/cli/doctor/problem.py b/eden/fs/cli/doctor/problem.py index a9f61f779afad..5893f887691e9 100644 --- a/eden/fs/cli/doctor/problem.py +++ b/eden/fs/cli/doctor/problem.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + import abc from enum import IntEnum from typing import List, Optional, Set diff --git a/eden/fs/cli/doctor/test/doctor_unix_test.py b/eden/fs/cli/doctor/test/doctor_unix_test.py index 8fe95d661439e..e655da98b0989 100644 --- a/eden/fs/cli/doctor/test/doctor_unix_test.py +++ b/eden/fs/cli/doctor/test/doctor_unix_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + import sys from typing import Optional from unittest.mock import MagicMock, patch diff --git a/eden/fs/cli/doctor/test/hang_mount_test.py b/eden/fs/cli/doctor/test/hang_mount_test.py index 0eeecf8a118fd..7911aac98bf9c 100644 --- a/eden/fs/cli/doctor/test/hang_mount_test.py +++ b/eden/fs/cli/doctor/test/hang_mount_test.py @@ -3,6 +3,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + from typing import List, Tuple diff --git a/eden/fs/cli/doctor/test/lib/fake_constants.py b/eden/fs/cli/doctor/test/lib/fake_constants.py index b2314679e1017..dd74205234fd4 100644 --- a/eden/fs/cli/doctor/test/lib/fake_constants.py +++ b/eden/fs/cli/doctor/test/lib/fake_constants.py @@ -4,5 +4,7 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + FAKE_UID = 1234 diff --git a/eden/fs/cli/doctor/test/lib/fake_hang_mount_table.py b/eden/fs/cli/doctor/test/lib/fake_hang_mount_table.py index f9d14e275cadf..d676428f68b00 100644 --- a/eden/fs/cli/doctor/test/lib/fake_hang_mount_table.py +++ b/eden/fs/cli/doctor/test/lib/fake_hang_mount_table.py @@ -3,6 +3,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + import multiprocessing import os import random diff --git a/eden/fs/cli/doctor/test/lib/fake_kerberos_checker.py b/eden/fs/cli/doctor/test/lib/fake_kerberos_checker.py index cb6349a596008..a1768bd18e35e 100644 --- a/eden/fs/cli/doctor/test/lib/fake_kerberos_checker.py +++ b/eden/fs/cli/doctor/test/lib/fake_kerberos_checker.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + from eden.fs.cli.config import EdenInstance from eden.fs.cli.doctor.check_kerberos import KerberosChecker from eden.fs.cli.doctor.problem import ProblemTracker diff --git a/eden/fs/cli/doctor/test/lib/fake_vscode_extensions_checker.py b/eden/fs/cli/doctor/test/lib/fake_vscode_extensions_checker.py index cdc39c1d4c50c..8a0c5af1631b2 100644 --- a/eden/fs/cli/doctor/test/lib/fake_vscode_extensions_checker.py +++ b/eden/fs/cli/doctor/test/lib/fake_vscode_extensions_checker.py @@ -3,6 +3,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + from typing import List try: diff --git a/eden/fs/cli/doctor/test/lib/problem_collector.py b/eden/fs/cli/doctor/test/lib/problem_collector.py index c0ac359d68b9b..56ca1b0a1589e 100644 --- a/eden/fs/cli/doctor/test/lib/problem_collector.py +++ b/eden/fs/cli/doctor/test/lib/problem_collector.py @@ -3,6 +3,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + from typing import List from eden.fs.cli.config import AbstractEdenInstance diff --git a/eden/fs/cli/doctor/test/lib/testcase.py b/eden/fs/cli/doctor/test/lib/testcase.py index 368efe91b3c15..5ee6601170feb 100644 --- a/eden/fs/cli/doctor/test/lib/testcase.py +++ b/eden/fs/cli/doctor/test/lib/testcase.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + import binascii import unittest from typing import Tuple diff --git a/eden/fs/cli/doctor/test/os_test.py b/eden/fs/cli/doctor/test/os_test.py index 1fec2687046ff..69a16316be555 100644 --- a/eden/fs/cli/doctor/test/os_test.py +++ b/eden/fs/cli/doctor/test/os_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + import typing from eden.fs.cli.config import EdenInstance diff --git a/eden/fs/cli/hostname.py b/eden/fs/cli/hostname.py index f462db41e15a3..4993437c83b0f 100644 --- a/eden/fs/cli/hostname.py +++ b/eden/fs/cli/hostname.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + import re import socket diff --git a/eden/fs/cli/overlay.py b/eden/fs/cli/overlay.py index 85f3190acf405..4d315fe9b96db 100644 --- a/eden/fs/cli/overlay.py +++ b/eden/fs/cli/overlay.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + import contextlib import errno import logging diff --git a/eden/fs/cli/prefetch.py b/eden/fs/cli/prefetch.py index 43ba87c5a3bd2..bdb04f67f5172 100644 --- a/eden/fs/cli/prefetch.py +++ b/eden/fs/cli/prefetch.py @@ -3,6 +3,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + import argparse import os import sys diff --git a/eden/fs/cli/prjfs.py b/eden/fs/cli/prjfs.py index 9bb98d0d04360..c0d513c19aa17 100644 --- a/eden/fs/cli/prjfs.py +++ b/eden/fs/cli/prjfs.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + import ctypes import enum import sys diff --git a/eden/fs/cli/proc_utils_win.py b/eden/fs/cli/proc_utils_win.py index e1d724fad562e..4336d2fc160de 100644 --- a/eden/fs/cli/proc_utils_win.py +++ b/eden/fs/cli/proc_utils_win.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + import ctypes import datetime import sys diff --git a/eden/fs/cli/rage.py b/eden/fs/cli/rage.py index 00ec8d994ddde..e1c3abd87dc1f 100644 --- a/eden/fs/cli/rage.py +++ b/eden/fs/cli/rage.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + import csv import getpass import io diff --git a/eden/fs/cli/repl.py b/eden/fs/cli/repl.py index f0eb3fc993e54..fba5f0998045e 100644 --- a/eden/fs/cli/repl.py +++ b/eden/fs/cli/repl.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + import asyncio import selectors diff --git a/eden/fs/cli/trace.py b/eden/fs/cli/trace.py index 3c75139605980..c1cbc88c60402 100644 --- a/eden/fs/cli/trace.py +++ b/eden/fs/cli/trace.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + import argparse from . import cmd_util, subcmd as subcmd_mod diff --git a/eden/fs/cli/trace_cmd.py b/eden/fs/cli/trace_cmd.py index b0ef28e5f02cf..c979131d57522 100644 --- a/eden/fs/cli/trace_cmd.py +++ b/eden/fs/cli/trace_cmd.py @@ -3,6 +3,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + from __future__ import absolute_import, division, print_function, unicode_literals import argparse diff --git a/eden/fs/cli/win_ui.py b/eden/fs/cli/win_ui.py index fbf83cfe500ef..d17bf7a925262 100644 --- a/eden/fs/cli/win_ui.py +++ b/eden/fs/cli/win_ui.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + from . import ui diff --git a/eden/fs/py/test/dirstate_test.py b/eden/fs/py/test/dirstate_test.py index acc27b6548664..aebe239a54c72 100644 --- a/eden/fs/py/test/dirstate_test.py +++ b/eden/fs/py/test/dirstate_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-strict + import io import unittest diff --git a/eden/integration/basic_test.py b/eden/integration/basic_test.py index b57d4d05cd050..09704a89e5b86 100644 --- a/eden/integration/basic_test.py +++ b/eden/integration/basic_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import errno import json import os diff --git a/eden/integration/casing_test.py b/eden/integration/casing_test.py index 624d952e195cd..77e4f4eab55f9 100644 --- a/eden/integration/casing_test.py +++ b/eden/integration/casing_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os from .lib import testcase diff --git a/eden/integration/chown_test.py b/eden/integration/chown_test.py index 57353e6dbd3d9..b51485d840558 100644 --- a/eden/integration/chown_test.py +++ b/eden/integration/chown_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os from .lib import repobase, testcase diff --git a/eden/integration/clone_test.py b/eden/integration/clone_test.py index 27c84bfd5bb61..25537a8c5c071 100644 --- a/eden/integration/clone_test.py +++ b/eden/integration/clone_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import json import os import subprocess diff --git a/eden/integration/config_test.py b/eden/integration/config_test.py index 305347ad3d9d7..8859b42a0aa35 100644 --- a/eden/integration/config_test.py +++ b/eden/integration/config_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import time from pathlib import Path diff --git a/eden/integration/corrupt_overlay_test.py b/eden/integration/corrupt_overlay_test.py index 4b687c1836b90..1203cefcf50f9 100644 --- a/eden/integration/corrupt_overlay_test.py +++ b/eden/integration/corrupt_overlay_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import logging import os import pathlib diff --git a/eden/integration/debug_getpath_test.py b/eden/integration/debug_getpath_test.py index 039066a288ca3..b38afe1a3cad3 100644 --- a/eden/integration/debug_getpath_test.py +++ b/eden/integration/debug_getpath_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import stat import time diff --git a/eden/integration/debug_subscribe_test.py b/eden/integration/debug_subscribe_test.py index 5f1f3e13ef33c..1df73ce98b9e1 100644 --- a/eden/integration/debug_subscribe_test.py +++ b/eden/integration/debug_subscribe_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import asyncio import json import platform diff --git a/eden/integration/debug_test.py b/eden/integration/debug_test.py index e807837d0aeb4..ae3dee4aa0139 100644 --- a/eden/integration/debug_test.py +++ b/eden/integration/debug_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import binascii import os import sys diff --git a/eden/integration/doteden_test.py b/eden/integration/doteden_test.py index 700bd721218e3..bad7be9b352ba 100644 --- a/eden/integration/doteden_test.py +++ b/eden/integration/doteden_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import errno import os import stat diff --git a/eden/integration/edenclient_test.py b/eden/integration/edenclient_test.py index 28f5fbe1cab00..7def177389a51 100644 --- a/eden/integration/edenclient_test.py +++ b/eden/integration/edenclient_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import pathlib from .lib import testcase diff --git a/eden/integration/fsck/basic_snapshot_tests.py b/eden/integration/fsck/basic_snapshot_tests.py index e34e4e3f3076f..b3d9484480aa1 100644 --- a/eden/integration/fsck/basic_snapshot_tests.py +++ b/eden/integration/fsck/basic_snapshot_tests.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import abc import binascii import re diff --git a/eden/integration/fsck_test.py b/eden/integration/fsck_test.py index dda5096eed1dd..9f811150b1156 100644 --- a/eden/integration/fsck_test.py +++ b/eden/integration/fsck_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import pathlib import subprocess from pathlib import Path diff --git a/eden/integration/glob_test.py b/eden/integration/glob_test.py index f15c9e9152d4f..612588193d8ad 100644 --- a/eden/integration/glob_test.py +++ b/eden/integration/glob_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import logging import time from typing import List, Optional, Tuple diff --git a/eden/integration/health_test.py b/eden/integration/health_test.py index 8b5d89d5dff23..e00e7c44b5158 100644 --- a/eden/integration/health_test.py +++ b/eden/integration/health_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import signal import sys diff --git a/eden/integration/help_test.py b/eden/integration/help_test.py index 01bb06d2bb5bc..b319933b3876e 100644 --- a/eden/integration/help_test.py +++ b/eden/integration/help_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + from .lib import edenclient, testcase diff --git a/eden/integration/hg/absorb_test.py b/eden/integration/hg/absorb_test.py index adb125c5b2c76..a40bc289ea7d5 100644 --- a/eden/integration/hg/absorb_test.py +++ b/eden/integration/hg/absorb_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import logging from eden.integration.lib import hgrepo diff --git a/eden/integration/hg/add_test.py b/eden/integration/hg/add_test.py index c094d34b80283..4271890962527 100644 --- a/eden/integration/hg/add_test.py +++ b/eden/integration/hg/add_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import subprocess import sys diff --git a/eden/integration/hg/commit_test.py b/eden/integration/hg/commit_test.py index ff34158340419..be33e885f8b79 100644 --- a/eden/integration/hg/commit_test.py +++ b/eden/integration/hg/commit_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os from eden.integration.lib import hgrepo diff --git a/eden/integration/hg/copy_test.py b/eden/integration/hg/copy_test.py index 4e61280b9db88..93f7b745a7c3f 100755 --- a/eden/integration/hg/copy_test.py +++ b/eden/integration/hg/copy_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + from textwrap import dedent from eden.integration.lib import hgrepo diff --git a/eden/integration/hg/debug_clear_local_caches_test.py b/eden/integration/hg/debug_clear_local_caches_test.py index 19d28b7c567a8..9fc5e3b2ffe9f 100644 --- a/eden/integration/hg/debug_clear_local_caches_test.py +++ b/eden/integration/hg/debug_clear_local_caches_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os from eden.integration.lib import hgrepo diff --git a/eden/integration/hg/debug_get_parents.py b/eden/integration/hg/debug_get_parents.py index 66a95a46c43e0..3624d1e696b32 100644 --- a/eden/integration/hg/debug_get_parents.py +++ b/eden/integration/hg/debug_get_parents.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + from pathlib import Path from eden.integration.lib import hgrepo diff --git a/eden/integration/hg/debug_hg_dirstate_test.py b/eden/integration/hg/debug_hg_dirstate_test.py index 294eeb1400044..e3a234cfd3fa2 100644 --- a/eden/integration/hg/debug_hg_dirstate_test.py +++ b/eden/integration/hg/debug_hg_dirstate_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + from textwrap import dedent from eden.integration.lib import hgrepo diff --git a/eden/integration/hg/diff_test.py b/eden/integration/hg/diff_test.py index 6b21e0e84916f..fcf0271ba6085 100644 --- a/eden/integration/hg/diff_test.py +++ b/eden/integration/hg/diff_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + from typing import List from eden.integration.lib import hgrepo diff --git a/eden/integration/hg/doctor_test.py b/eden/integration/hg/doctor_test.py index 221d0364da614..b4fc7becff3f5 100755 --- a/eden/integration/hg/doctor_test.py +++ b/eden/integration/hg/doctor_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import subprocess from pathlib import Path diff --git a/eden/integration/hg/files_test.py b/eden/integration/hg/files_test.py index fa108299d1779..7a84014363fc8 100644 --- a/eden/integration/hg/files_test.py +++ b/eden/integration/hg/files_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import subprocess from typing import List diff --git a/eden/integration/hg/filteredhg_clone_test.py b/eden/integration/hg/filteredhg_clone_test.py index 497e6c10f8e45..b522726981d33 100644 --- a/eden/integration/hg/filteredhg_clone_test.py +++ b/eden/integration/hg/filteredhg_clone_test.py @@ -3,6 +3,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import subprocess from pathlib import Path diff --git a/eden/integration/hg/filteredhg_test.py b/eden/integration/hg/filteredhg_test.py index 5263f71850d84..5d4f88a302ed7 100644 --- a/eden/integration/hg/filteredhg_test.py +++ b/eden/integration/hg/filteredhg_test.py @@ -3,6 +3,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os from typing import Optional, Set diff --git a/eden/integration/hg/fold_test.py b/eden/integration/hg/fold_test.py index 119aeaaf2dc2b..a946e37583f91 100644 --- a/eden/integration/hg/fold_test.py +++ b/eden/integration/hg/fold_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + from eden.integration.lib import hgrepo from .lib.hg_extension_test_base import EdenHgTestCase, hg_test diff --git a/eden/integration/hg/graft_test.py b/eden/integration/hg/graft_test.py index 48e5409a3ace4..1e7b14523becf 100644 --- a/eden/integration/hg/graft_test.py +++ b/eden/integration/hg/graft_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os from eden.integration.lib import hgrepo diff --git a/eden/integration/hg/grep_test.py b/eden/integration/hg/grep_test.py index 8ecdc1ac75079..8d8590d908bcf 100644 --- a/eden/integration/hg/grep_test.py +++ b/eden/integration/hg/grep_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import sys from textwrap import dedent diff --git a/eden/integration/hg/histedit_test.py b/eden/integration/hg/histedit_test.py index 97f54b5a70dfa..f2426ad53d93b 100644 --- a/eden/integration/hg/histedit_test.py +++ b/eden/integration/hg/histedit_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os from eden.integration.lib import hgrepo diff --git a/eden/integration/hg/journal_test.py b/eden/integration/hg/journal_test.py index 6c0acdd0a7be5..9a7380eaf79a3 100644 --- a/eden/integration/hg/journal_test.py +++ b/eden/integration/hg/journal_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + from eden.integration.lib import hgrepo from .lib.hg_extension_test_base import EdenHgTestCase, hg_test, JournalEntry diff --git a/eden/integration/hg/legacy_filter_test.py b/eden/integration/hg/legacy_filter_test.py index e83cf9fa942ea..54a3eee5da03e 100644 --- a/eden/integration/hg/legacy_filter_test.py +++ b/eden/integration/hg/legacy_filter_test.py @@ -3,6 +3,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import sys from typing import Dict, List, Optional, Set diff --git a/eden/integration/hg/lib/hg_extension_test_base.py b/eden/integration/hg/lib/hg_extension_test_base.py index 5d389c8080d95..749ccf83aecb8 100755 --- a/eden/integration/hg/lib/hg_extension_test_base.py +++ b/eden/integration/hg/lib/hg_extension_test_base.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import abc import configparser import itertools diff --git a/eden/integration/hg/lib/hg_extension_test_base_test.py b/eden/integration/hg/lib/hg_extension_test_base_test.py index 7f351a435b958..057e3989d0116 100644 --- a/eden/integration/hg/lib/hg_extension_test_base_test.py +++ b/eden/integration/hg/lib/hg_extension_test_base_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os from eden.integration.lib import hgrepo diff --git a/eden/integration/hg/lib/histedit_command.py b/eden/integration/hg/lib/histedit_command.py index 3e5d72af62d31..6410829147c83 100644 --- a/eden/integration/hg/lib/histedit_command.py +++ b/eden/integration/hg/lib/histedit_command.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os from typing import Optional diff --git a/eden/integration/hg/merge_test.py b/eden/integration/hg/merge_test.py index 93e6e20276cd8..e5dd3139bfb60 100644 --- a/eden/integration/hg/merge_test.py +++ b/eden/integration/hg/merge_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + from eden.integration.lib.hgrepo import HgRepository from .lib.hg_extension_test_base import EdenHgTestCase, hg_test diff --git a/eden/integration/hg/move_test.py b/eden/integration/hg/move_test.py index dd89526eb56ee..8f7a33a326112 100644 --- a/eden/integration/hg/move_test.py +++ b/eden/integration/hg/move_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os from textwrap import dedent diff --git a/eden/integration/hg/negative_caching_test.py b/eden/integration/hg/negative_caching_test.py index 6882715615889..f57f883302a87 100644 --- a/eden/integration/hg/negative_caching_test.py +++ b/eden/integration/hg/negative_caching_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import errno import sys diff --git a/eden/integration/hg/non_eden_operation_test.py b/eden/integration/hg/non_eden_operation_test.py index 91744b34e00d7..6e2711868d626 100644 --- a/eden/integration/hg/non_eden_operation_test.py +++ b/eden/integration/hg/non_eden_operation_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os from eden.integration.hg.lib.hg_extension_test_base import EdenHgTestCase, hg_test diff --git a/eden/integration/hg/post_clone_test.py b/eden/integration/hg/post_clone_test.py index 72ade2ab9cc3c..819378903f874 100644 --- a/eden/integration/hg/post_clone_test.py +++ b/eden/integration/hg/post_clone_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import sys diff --git a/eden/integration/hg/rebase_test.py b/eden/integration/hg/rebase_test.py index 0dcc389c541ed..ae495ad92bd72 100644 --- a/eden/integration/hg/rebase_test.py +++ b/eden/integration/hg/rebase_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import subprocess import threading diff --git a/eden/integration/hg/revert_test.py b/eden/integration/hg/revert_test.py index 0a5e4526170e0..ddcc861048f5c 100644 --- a/eden/integration/hg/revert_test.py +++ b/eden/integration/hg/revert_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + from eden.integration.lib import hgrepo from .lib.hg_extension_test_base import EdenHgTestCase, hg_test diff --git a/eden/integration/hg/rm_test.py b/eden/integration/hg/rm_test.py index a94480f44a3ff..0fcf75cb0da7f 100644 --- a/eden/integration/hg/rm_test.py +++ b/eden/integration/hg/rm_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os from eden.integration.lib import hgrepo diff --git a/eden/integration/hg/rollback_test.py b/eden/integration/hg/rollback_test.py index af5a625eda5a3..f65ba6360b0d1 100644 --- a/eden/integration/hg/rollback_test.py +++ b/eden/integration/hg/rollback_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + from eden.integration.lib import hgrepo from .lib.hg_extension_test_base import EdenHgTestCase, hg_test diff --git a/eden/integration/hg/shelve_test.py b/eden/integration/hg/shelve_test.py index 0632602612671..75ccfbe059616 100755 --- a/eden/integration/hg/shelve_test.py +++ b/eden/integration/hg/shelve_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import logging from eden.integration.lib import hgrepo diff --git a/eden/integration/hg/sparse_test.py b/eden/integration/hg/sparse_test.py index 23621d91050b4..76d5039e4c4c8 100755 --- a/eden/integration/hg/sparse_test.py +++ b/eden/integration/hg/sparse_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + from eden.integration.lib import hgrepo from .lib.hg_extension_test_base import EdenHgTestCase, hg_test diff --git a/eden/integration/hg/split_test.py b/eden/integration/hg/split_test.py index 77a67c9d95767..de2ebb249a4b4 100644 --- a/eden/integration/hg/split_test.py +++ b/eden/integration/hg/split_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + from eden.integration.lib import hgrepo from .lib.hg_extension_test_base import EdenHgTestCase, hg_test diff --git a/eden/integration/hg/status_deadlock_test.py b/eden/integration/hg/status_deadlock_test.py index df5fe14d8d4f9..a9c654afc9d4e 100644 --- a/eden/integration/hg/status_deadlock_test.py +++ b/eden/integration/hg/status_deadlock_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import logging import os from typing import Dict, List diff --git a/eden/integration/hg/status_test.py b/eden/integration/hg/status_test.py index c50a1313743a1..edc8190978652 100755 --- a/eden/integration/hg/status_test.py +++ b/eden/integration/hg/status_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import binascii import os import socket diff --git a/eden/integration/hg/storage_engine_test.py b/eden/integration/hg/storage_engine_test.py index 65d06c415f440..19e6c47815b90 100644 --- a/eden/integration/hg/storage_engine_test.py +++ b/eden/integration/hg/storage_engine_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import abc import os import subprocess diff --git a/eden/integration/hg/symlink_test.py b/eden/integration/hg/symlink_test.py index fb91f422e2fb1..3f0dee289c4ab 100644 --- a/eden/integration/hg/symlink_test.py +++ b/eden/integration/hg/symlink_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os from eden.integration.lib import hgrepo diff --git a/eden/integration/hg/undo_test.py b/eden/integration/hg/undo_test.py index 4b050f4cd1226..308dd7fd2e3ad 100644 --- a/eden/integration/hg/undo_test.py +++ b/eden/integration/hg/undo_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import logging import os from typing import Dict, Optional diff --git a/eden/integration/hg/update_test.py b/eden/integration/hg/update_test.py index 2a8bd5493cfe7..39e2c011b5c08 100755 --- a/eden/integration/hg/update_test.py +++ b/eden/integration/hg/update_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import logging import os import re diff --git a/eden/integration/info_test.py b/eden/integration/info_test.py index 228f823dc262b..735013acd2d2d 100644 --- a/eden/integration/info_test.py +++ b/eden/integration/info_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import json import os diff --git a/eden/integration/invalidate_test.py b/eden/integration/invalidate_test.py index f7ba4713a4b81..d72a7f0b7de19 100644 --- a/eden/integration/invalidate_test.py +++ b/eden/integration/invalidate_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import time from typing import Dict, List diff --git a/eden/integration/lib/eden_server_inspector.py b/eden/integration/lib/eden_server_inspector.py index eb6269de19128..ccb891a05d142 100644 --- a/eden/integration/lib/eden_server_inspector.py +++ b/eden/integration/lib/eden_server_inspector.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os from typing import Iterable diff --git a/eden/integration/lib/edenclient.py b/eden/integration/lib/edenclient.py index cf71690209977..e2a53f8d99a95 100644 --- a/eden/integration/lib/edenclient.py +++ b/eden/integration/lib/edenclient.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import json import logging import os diff --git a/eden/integration/lib/error.py b/eden/integration/lib/error.py index f34e2ece62221..adc2d7038a282 100644 --- a/eden/integration/lib/error.py +++ b/eden/integration/lib/error.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import shlex import subprocess diff --git a/eden/integration/lib/fake_edenfs.py b/eden/integration/lib/fake_edenfs.py index 9ad30a6803c25..ba067d4529c95 100644 --- a/eden/integration/lib/fake_edenfs.py +++ b/eden/integration/lib/fake_edenfs.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import contextlib import os import pathlib diff --git a/eden/integration/lib/gitrepo.py b/eden/integration/lib/gitrepo.py index 5f2dbcc6333f0..a7e52a527cb17 100644 --- a/eden/integration/lib/gitrepo.py +++ b/eden/integration/lib/gitrepo.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import datetime import os import subprocess diff --git a/eden/integration/lib/hgrepo.py b/eden/integration/lib/hgrepo.py index bee1526cf6fda..7ecdb5c4f956b 100755 --- a/eden/integration/lib/hgrepo.py +++ b/eden/integration/lib/hgrepo.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import configparser import datetime import json diff --git a/eden/integration/lib/overlay.py b/eden/integration/lib/overlay.py index 81ca7ee60d66e..f8801ed705a5f 100644 --- a/eden/integration/lib/overlay.py +++ b/eden/integration/lib/overlay.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import pathlib import stat diff --git a/eden/integration/lib/pexpect.py b/eden/integration/lib/pexpect.py index 4ca354c2da167..cc67024ff41f9 100644 --- a/eden/integration/lib/pexpect.py +++ b/eden/integration/lib/pexpect.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import abc import shlex import sys diff --git a/eden/integration/lib/repobase.py b/eden/integration/lib/repobase.py index 2e5e372f65c62..5c844afd881cc 100644 --- a/eden/integration/lib/repobase.py +++ b/eden/integration/lib/repobase.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import datetime import errno import os diff --git a/eden/integration/lib/service_test_case.py b/eden/integration/lib/service_test_case.py index 5884fd2c2c505..cd0e34cc66c37 100644 --- a/eden/integration/lib/service_test_case.py +++ b/eden/integration/lib/service_test_case.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import abc import pathlib import sys diff --git a/eden/integration/lib/skip.py b/eden/integration/lib/skip.py index dff2a92bb236d..c1034fbc500c9 100644 --- a/eden/integration/lib/skip.py +++ b/eden/integration/lib/skip.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import sys import unittest diff --git a/eden/integration/lib/start.py b/eden/integration/lib/start.py index 775785727a424..f907b8e574057 100644 --- a/eden/integration/lib/start.py +++ b/eden/integration/lib/start.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import contextlib import os diff --git a/eden/integration/lib/temporary_directory.py b/eden/integration/lib/temporary_directory.py index 21d396e886f61..53cd7443f4d3e 100644 --- a/eden/integration/lib/temporary_directory.py +++ b/eden/integration/lib/temporary_directory.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import contextlib import pathlib import tempfile diff --git a/eden/integration/lib/testcase.py b/eden/integration/lib/testcase.py index 235c924dc19ff..ee62bb5bc24e6 100644 --- a/eden/integration/lib/testcase.py +++ b/eden/integration/lib/testcase.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import configparser import errno import hashlib diff --git a/eden/integration/lib/util.py b/eden/integration/lib/util.py index d3fb07542a403..0c496ce717817 100644 --- a/eden/integration/lib/util.py +++ b/eden/integration/lib/util.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import sys from typing import Callable, List, Optional diff --git a/eden/integration/long_path_test.py b/eden/integration/long_path_test.py index 9abf733aaa03e..2bf8053472847 100644 --- a/eden/integration/long_path_test.py +++ b/eden/integration/long_path_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + from typing import Dict from facebook.eden.ttypes import GetScmStatusParams, ScmFileStatus diff --git a/eden/integration/materialized_query_test.py b/eden/integration/materialized_query_test.py index 2133e69c2a13d..264d0a637fc1f 100644 --- a/eden/integration/materialized_query_test.py +++ b/eden/integration/materialized_query_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import errno import os import stat diff --git a/eden/integration/mmap_test.py b/eden/integration/mmap_test.py index 284d5ae36e8f8..8f3214761c39f 100644 --- a/eden/integration/mmap_test.py +++ b/eden/integration/mmap_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import ctypes import mmap import os diff --git a/eden/integration/mount_test.py b/eden/integration/mount_test.py index 5fd2cb5247cd8..9b575c1371ba6 100644 --- a/eden/integration/mount_test.py +++ b/eden/integration/mount_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import re import shutil diff --git a/eden/integration/oexcl_test.py b/eden/integration/oexcl_test.py index 4483d86785608..056b31aa68bb4 100644 --- a/eden/integration/oexcl_test.py +++ b/eden/integration/oexcl_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import errno import os diff --git a/eden/integration/patch_test.py b/eden/integration/patch_test.py index b88abda0cb063..19dab31626967 100644 --- a/eden/integration/patch_test.py +++ b/eden/integration/patch_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import subprocess from typing import Dict diff --git a/eden/integration/persistence_test.py b/eden/integration/persistence_test.py index 01620456ac317..e8922da6d9ed5 100644 --- a/eden/integration/persistence_test.py +++ b/eden/integration/persistence_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import sys from typing import Dict diff --git a/eden/integration/prjfs_match_fs.py b/eden/integration/prjfs_match_fs.py index f75e2be9ea390..24bd93afea35f 100644 --- a/eden/integration/prjfs_match_fs.py +++ b/eden/integration/prjfs_match_fs.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + from typing import List from facebook.eden.ttypes import ( diff --git a/eden/integration/prjfs_stress.py b/eden/integration/prjfs_stress.py index cd9babdf59bad..1422f808b0469 100644 --- a/eden/integration/prjfs_stress.py +++ b/eden/integration/prjfs_stress.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import stat import subprocess diff --git a/eden/integration/projfs_buffer.py b/eden/integration/projfs_buffer.py index 58ee37e8e4fd3..d17420ab26af9 100644 --- a/eden/integration/projfs_buffer.py +++ b/eden/integration/projfs_buffer.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import subprocess import sys diff --git a/eden/integration/rage_test.py b/eden/integration/rage_test.py index a6e3a06fca868..37ff93ba47641 100644 --- a/eden/integration/rage_test.py +++ b/eden/integration/rage_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import logging from .lib import repobase, testcase diff --git a/eden/integration/rc_test.py b/eden/integration/rc_test.py index ef87cb41ecb08..8eb934ca4e81d 100644 --- a/eden/integration/rc_test.py +++ b/eden/integration/rc_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os from .lib import testcase diff --git a/eden/integration/readdir_test.py b/eden/integration/readdir_test.py index 32c4eb016c975..92b74c6c83e93 100644 --- a/eden/integration/readdir_test.py +++ b/eden/integration/readdir_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import hashlib import os import re diff --git a/eden/integration/redirect_test.py b/eden/integration/redirect_test.py index 5c0ff69625558..cd3f3c5278d6f 100644 --- a/eden/integration/redirect_test.py +++ b/eden/integration/redirect_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import json import os import subprocess diff --git a/eden/integration/remount_test.py b/eden/integration/remount_test.py index 65d235fb9a985..e31744f6e3216 100644 --- a/eden/integration/remount_test.py +++ b/eden/integration/remount_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import json import os diff --git a/eden/integration/rename_test.py b/eden/integration/rename_test.py index d7d9f235fe449..6f324a2526f7b 100644 --- a/eden/integration/rename_test.py +++ b/eden/integration/rename_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import errno import os import time diff --git a/eden/integration/restart_test.py b/eden/integration/restart_test.py index 73df250067a0f..c11b4a294e90b 100644 --- a/eden/integration/restart_test.py +++ b/eden/integration/restart_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import subprocess import sys import typing diff --git a/eden/integration/rocksdb_store_test.py b/eden/integration/rocksdb_store_test.py index f66d9fc65ed50..ad934efbf516b 100644 --- a/eden/integration/rocksdb_store_test.py +++ b/eden/integration/rocksdb_store_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import re from typing import Dict, Optional diff --git a/eden/integration/sed_test.py b/eden/integration/sed_test.py index 9f60fdbc348b5..0e3fc6914fa51 100644 --- a/eden/integration/sed_test.py +++ b/eden/integration/sed_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import stat import subprocess diff --git a/eden/integration/service_log_test.py b/eden/integration/service_log_test.py index cc36ddbe948f3..84d59b22b84de 100644 --- a/eden/integration/service_log_test.py +++ b/eden/integration/service_log_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import pathlib from .lib.service_test_case import fake_service_test, service_test, ServiceTestCaseBase diff --git a/eden/integration/setattr_test.py b/eden/integration/setattr_test.py index a3bf72edcf2b8..6b51adccc8192 100644 --- a/eden/integration/setattr_test.py +++ b/eden/integration/setattr_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import errno import os import stat diff --git a/eden/integration/snapshot/gen_snapshot.py b/eden/integration/snapshot/gen_snapshot.py index 92111cf8c0dd2..0c88da1e5dd91 100644 --- a/eden/integration/snapshot/gen_snapshot.py +++ b/eden/integration/snapshot/gen_snapshot.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import argparse import logging import sys diff --git a/eden/integration/snapshot/inode_metadata.py b/eden/integration/snapshot/inode_metadata.py index fb04ea2b76c34..f9b4d0266c95e 100644 --- a/eden/integration/snapshot/inode_metadata.py +++ b/eden/integration/snapshot/inode_metadata.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import struct import tempfile diff --git a/eden/integration/snapshot/snapshot.py b/eden/integration/snapshot/snapshot.py index 27b2a9ba5d379..d02b1b6be217c 100644 --- a/eden/integration/snapshot/snapshot.py +++ b/eden/integration/snapshot/snapshot.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import abc import contextlib import datetime diff --git a/eden/integration/snapshot/test_snapshots.py b/eden/integration/snapshot/test_snapshots.py index 48fcc210b256e..8fc12052ccdc5 100644 --- a/eden/integration/snapshot/test_snapshots.py +++ b/eden/integration/snapshot/test_snapshots.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import stat import unittest diff --git a/eden/integration/snapshot/types/basic.py b/eden/integration/snapshot/types/basic.py index cf5c1191c7944..b85a59b7330f3 100644 --- a/eden/integration/snapshot/types/basic.py +++ b/eden/integration/snapshot/types/basic.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + from eden.integration.lib import edenclient from eden.integration.snapshot import verify as verify_mod from eden.integration.snapshot.snapshot import HgSnapshot, snapshot_class diff --git a/eden/integration/snapshot/unpack_snapshot.py b/eden/integration/snapshot/unpack_snapshot.py index 4c90889276ee1..aa0b6f36129ab 100644 --- a/eden/integration/snapshot/unpack_snapshot.py +++ b/eden/integration/snapshot/unpack_snapshot.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import argparse import os from pathlib import Path diff --git a/eden/integration/stale_test.py b/eden/integration/stale_test.py index 7d062a249da80..2fc1a4a56e4c5 100644 --- a/eden/integration/stale_test.py +++ b/eden/integration/stale_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import errno import os import subprocess diff --git a/eden/integration/start_test.py b/eden/integration/start_test.py index 87e28940f7851..be5237adebd63 100644 --- a/eden/integration/start_test.py +++ b/eden/integration/start_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import pathlib import subprocess diff --git a/eden/integration/stats_test.py b/eden/integration/stats_test.py index 4428f6ff4a80a..7fea92748a7dd 100644 --- a/eden/integration/stats_test.py +++ b/eden/integration/stats_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import logging import os import sys diff --git a/eden/integration/stop_test.py b/eden/integration/stop_test.py index 2f52602da58c8..4ad1d12633747 100644 --- a/eden/integration/stop_test.py +++ b/eden/integration/stop_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import contextlib import os import signal diff --git a/eden/integration/takeover_test.py b/eden/integration/takeover_test.py index e792b1f440ff8..f4458de6b646c 100644 --- a/eden/integration/takeover_test.py +++ b/eden/integration/takeover_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import signal import subprocess diff --git a/eden/integration/thrift_test.py b/eden/integration/thrift_test.py index cec595bc02750..414aed9301e13 100644 --- a/eden/integration/thrift_test.py +++ b/eden/integration/thrift_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import binascii import hashlib import os diff --git a/eden/integration/unixsocket_test.py b/eden/integration/unixsocket_test.py index d11fd11a34c09..af683e6a691e9 100644 --- a/eden/integration/unixsocket_test.py +++ b/eden/integration/unixsocket_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import select import socket diff --git a/eden/integration/unlink_test.py b/eden/integration/unlink_test.py index ab07f83c2d986..e6716a2ab47c8 100644 --- a/eden/integration/unlink_test.py +++ b/eden/integration/unlink_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import errno import os import shutil diff --git a/eden/integration/userinfo_test.py b/eden/integration/userinfo_test.py index 543df68002755..58971d4012a53 100644 --- a/eden/integration/userinfo_test.py +++ b/eden/integration/userinfo_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import subprocess import unittest diff --git a/eden/integration/windows_fsck_test.py b/eden/integration/windows_fsck_test.py index 5900605367c18..bfd7ad2ffc73e 100644 --- a/eden/integration/windows_fsck_test.py +++ b/eden/integration/windows_fsck_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import os import shutil import subprocess diff --git a/eden/integration/xattr_test.py b/eden/integration/xattr_test.py index ca19b9fcb6517..e16fbaace7a94 100644 --- a/eden/integration/xattr_test.py +++ b/eden/integration/xattr_test.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import hashlib import os from typing import Dict diff --git a/eden/mononoke/tests/integration/get_free_socket.py b/eden/mononoke/tests/integration/get_free_socket.py index 3599385808940..aabcf6994bf51 100755 --- a/eden/mononoke/tests/integration/get_free_socket.py +++ b/eden/mononoke/tests/integration/get_free_socket.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + # From https://unix.stackexchange.com/questions/55913/whats-the-easiest-way-to-find-an-unused-local-port import socket diff --git a/eden/mononoke/tests/integration/integration_runner_real.py b/eden/mononoke/tests/integration/integration_runner_real.py index 0e13a705da92f..d79f3b435bd16 100755 --- a/eden/mononoke/tests/integration/integration_runner_real.py +++ b/eden/mononoke/tests/integration/integration_runner_real.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + """Runner for Mononoke/Mercurial integration tests.""" import json diff --git a/eden/mononoke/tests/integration/urlencode.py b/eden/mononoke/tests/integration/urlencode.py index 0e34c9dbfd781..c805593945894 100755 --- a/eden/mononoke/tests/integration/urlencode.py +++ b/eden/mononoke/tests/integration/urlencode.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import sys from urllib.parse import quote, unquote diff --git a/eden/mononoke/tests/utils/generate_buck_target_deps.py b/eden/mononoke/tests/utils/generate_buck_target_deps.py index 687a807efda20..94ac9257e2705 100644 --- a/eden/mononoke/tests/utils/generate_buck_target_deps.py +++ b/eden/mononoke/tests/utils/generate_buck_target_deps.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import argparse import subprocess diff --git a/eden/scm/gen_version.py b/eden/scm/gen_version.py index 5c127afe88361..a9bf97e4ddb45 100755 --- a/eden/scm/gen_version.py +++ b/eden/scm/gen_version.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import argparse import errno import hashlib diff --git a/eden/scm/hgcache_size_logger/hgcache_size_logger.py b/eden/scm/hgcache_size_logger/hgcache_size_logger.py index 15abbc9853362..1f1095a5b1376 100644 --- a/eden/scm/hgcache_size_logger/hgcache_size_logger.py +++ b/eden/scm/hgcache_size_logger/hgcache_size_logger.py @@ -3,6 +3,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import argparse import logging import os diff --git a/eden/scm/lib/python-modules/buck_pymain.py b/eden/scm/lib/python-modules/buck_pymain.py index 6b4045f4f568f..791b1f99afc6c 100644 --- a/eden/scm/lib/python-modules/buck_pymain.py +++ b/eden/scm/lib/python-modules/buck_pymain.py @@ -3,6 +3,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + # Pick the "right" python to execute the script in stdin. # This should match the python linked with "hgmain" in buck build. import os diff --git a/eden/test_support/async_case_backport.py b/eden/test_support/async_case_backport.py index 2d62589b5e142..9ac3ead13fd5d 100644 --- a/eden/test_support/async_case_backport.py +++ b/eden/test_support/async_case_backport.py @@ -13,6 +13,8 @@ # @nolint # fmt: off +# pyre-unsafe + import asyncio import inspect diff --git a/eden/test_support/environment_variable.py b/eden/test_support/environment_variable.py index e90414c4f7cb8..e8e31d73cac1f 100644 --- a/eden/test_support/environment_variable.py +++ b/eden/test_support/environment_variable.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import abc import contextlib import os diff --git a/eden/test_support/testcase.py b/eden/test_support/testcase.py index ca0cbcd616743..17129593c669d 100644 --- a/eden/test_support/testcase.py +++ b/eden/test_support/testcase.py @@ -4,6 +4,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2. +# pyre-unsafe + import contextlib import sys import unittest