Skip to content

Commit 1e5f8d2

Browse files
feat: complete pyrefly migration with pyrefly init
- Run pyrefly init to migrate mypy.ini to pyrefly.toml - Auto-suppress 2 errors in bin/ and docs/ files - Remove redundant [tool.pyrefly] section from pyproject.toml - Remove obsolete mypy.ini file - Pyrefly check now shows 0 errors (526 ignored) Co-Authored-By: AJ Steers <[email protected]>
1 parent 0732f3a commit 1e5f8d2

File tree

5 files changed

+5
-31
lines changed

5 files changed

+5
-31
lines changed

bin/generate_component_manifest_files.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,4 +155,5 @@ async def main():
155155
)
156156

157157

158+
# pyrefly: ignore # bad-argument-type
158159
anyio.run(main)

docs/generate.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def run() -> None:
6565
shutil.rmtree("docs/generated")
6666

6767
pdoc.render.configure(
68+
# pyrefly: ignore # bad-argument-type
6869
template_directory="docs",
6970
show_source=True,
7071
search=True,

mypy.ini

Lines changed: 0 additions & 27 deletions
This file was deleted.

pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,6 @@ source-declarative-manifest = "airbyte_cdk.cli.source_declarative_manifest:run"
129129

130130
# Ruff configuration moved to ruff.toml
131131

132-
[tool.pyrefly]
133-
python_version = "3.10"
134-
project_excludes = ["bin", "docs", "unit_tests"]
135-
136132
[tool.poe.tasks]
137133
# Installation
138134
install = { shell = "poetry install --all-extras", help = "Install all dependencies." }

pyrefly.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
project-excludes = ["**/unit_tests/"]
2+
ignore-missing-imports = ["*"]
3+
untyped-def-behavior = "check-and-infer-return-any"

0 commit comments

Comments
 (0)