diff --git a/.github/workflows/pyre.yml b/.github/workflows/pyre.yml index e51769f484e..206f771a3ea 100644 --- a/.github/workflows/pyre.yml +++ b/.github/workflows/pyre.yml @@ -22,6 +22,7 @@ jobs: run: | pip install --upgrade pip pip install -r requirements.txt + pip install -r requirements-dev.txt pip install cython flask flask_cors graphql-core typing_inspect VERSION=$(grep "version" .pyre_configuration | sed -n -e 's/.*\(0\.0\.[0-9]*\).*/\1/p') pip install pyre-check-nightly==$VERSION @@ -29,7 +30,7 @@ jobs: - name: Run Pyre continue-on-error: true run: | - pyre --output=sarif check > sarif.json + pyre -n --output=sarif check > sarif.json - name: Expose SARIF Results uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 diff --git a/.pyre_configuration b/.pyre_configuration index ae648888760..ef63cab75a8 100644 --- a/.pyre_configuration +++ b/.pyre_configuration @@ -41,6 +41,12 @@ { "site-package": "testslide" }, + { + "site-package": "toml" + }, + { + "site-package": "tabulate" + }, { "is_toplevel_module": true, "site-package": "typing_extensions" diff --git a/requirements-dev.txt b/requirements-dev.txt index 416634f5288..217be79f85f 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1 +1,2 @@ pre-commit +toml diff --git a/requirements.txt b/requirements.txt index 26027d060d7..4dafefd195f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ click>=8.0 -dataclasses-json +dataclasses-json==0.5.7 intervaltree libcst psutil diff --git a/tools/typeshed_patcher/typeshed.py b/tools/typeshed_patcher/typeshed.py index 0b5afff59cd..857eb6d2690 100644 --- a/tools/typeshed_patcher/typeshed.py +++ b/tools/typeshed_patcher/typeshed.py @@ -57,8 +57,6 @@ class Typeshed(abc.ABC): Representation of a collection of Python stub files. """ - # pyre-fixme[56]: Pyre doesn't yet support decorators with ParamSpec applied to - # generic functions Please add # pyre-ignore[56] to `abc.abstractclassmethod`. @abc.abstractclassmethod def get_file_content(self, path: pathlib.Path) -> Optional[str]: """ @@ -69,8 +67,6 @@ def get_file_content(self, path: pathlib.Path) -> Optional[str]: """ raise NotImplementedError() - # pyre-fixme[56]: Pyre doesn't yet support decorators with ParamSpec applied to - # generic functions Please add # pyre-ignore[56] to `abc.abstractclassmethod`. @abc.abstractclassmethod def all_files(self) -> Iterable[pathlib.Path]: """ diff --git a/tools/upgrade/commands/tests/fixme_all_test.py b/tools/upgrade/commands/tests/fixme_all_test.py index e518599c8b5..a245937f76c 100644 --- a/tools/upgrade/commands/tests/fixme_all_test.py +++ b/tools/upgrade/commands/tests/fixme_all_test.py @@ -9,12 +9,10 @@ import subprocess import unittest from pathlib import Path -from unittest.mock import call, MagicMock, mock_open, patch +from unittest.mock import MagicMock, mock_open, patch from ... import upgrade -from ...errors import Errors from ...repository import Repository -from .. import command from ..command import ErrorSource, ErrorSuppressingCommand from ..fixme_all import Configuration, FixmeAll diff --git a/tools/upgrade/commands/tests/fixme_single_test.py b/tools/upgrade/commands/tests/fixme_single_test.py index 491e80e138c..3b3b53ce3ee 100644 --- a/tools/upgrade/commands/tests/fixme_single_test.py +++ b/tools/upgrade/commands/tests/fixme_single_test.py @@ -9,7 +9,6 @@ from pathlib import Path from unittest.mock import MagicMock, mock_open, patch -from ... import upgrade from ...errors import Errors from ...repository import Repository from ..command import ErrorSuppressingCommand