Skip to content

Commit

Permalink
Intergrate Pyre Configuration to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
WangGithubUser committed Oct 3, 2023
1 parent 53ae88f commit e6aaa24
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pyre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
pip install --upgrade pip
pip install -r requirements.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')
VERSION=$(grep "version" pyproject.toml | sed -n -e 's/.*\(0\.0\.[0-9]*\).*/\1/p')
pip install pyre-check-nightly==$VERSION
- name: Run Pyre
Expand Down
34 changes: 34 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ commands =
usort check client scripts tools
flake8 client scripts tools
"""

[tool.ufmt]
excludes = [
"documentation/",
Expand All @@ -36,3 +37,36 @@ excludes = [
"source/",
"stubs/"
]

[tool.pyre]
exclude = [
".*/documentation/.*",
".*/generate_taint_models/.*",
".*/scripts/.*",
".*/source/.*",
".*/pyre-check/stubs/.*"
]
ignore_all_errors = [
"client/tests/configuration_test.py",
"pyre_extensions/safe_json.py"
]
search_path = [
{ "site-package" = "click" },
{ "site-package" = "dataclasses_json"},
{ "site-package" = "flask" },
{ "site-package" = "flask_cors" },
{ "site-package" = "graphql" },
{ "site-package" = "intervaltree" },
{ "site-package" = "libcst" },
{ "site-package" = "marshmallow" },
{ "site-package" = "psutil" },
{ "site-package" = "testslide" },
{ "is_toplevel_module" = true, "site-package" = "typing_extensions" },
{ "is_toplevel_module" = true, "site-package" = "typing_inspect" },
{ "site-package" = "tomli" }
]
source_directories = [
"."
]
strict = true
version = "0.0.101695726714"

0 comments on commit e6aaa24

Please sign in to comment.