Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 0 additions & 58 deletions sdks/python/.isort.cfg

This file was deleted.

162 changes: 162 additions & 0 deletions sdks/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,165 @@ requires = [

# legacy installation is needed to generate `apache_beam.portability.api` package.
build-backend = "setuptools.build_meta"

[tool.isort]
py_version = 310
line_length = 120
old_finders = true
order_by_type = true
force_single_line = true
combine_star = true
src_paths = ["apache_beam"]
extra_standard_library = ["dataclasses"]
known_third_party = ["yaml"]
skip = [
"apiclient.py",
"avroio_test.py",
"cloudpickle.py",
"datastore_wordcount.py",
"datastoreio_test.py",
"doctests_test.py",
"fast_coders_test.py",
"hadoopfilesystem.py",
"iobase_test.py",
"main_test.py",
"model.py",
"preprocess.py",
"process_tfma.py",
"render_test.py",
"slow_coders_test.py",
"taxi.py",
"tfdv_analyze_and_validate.py",
"yaml/main.py",
"yaml_testing_test.py",
"bigquery_v2_client.py",
"bigquery_v2_messages.py",
"dataflow_v1b3_client.py",
"dataflow_v1b3_messages.py",
"storage_v1_client.py",
"storage_v1_messages.py",
"proto2_coder_test_messages_pb2.py",
"cloudbuild_v1_client.py",
"cloudbuild_v1_messages.py",
"boto3_client.py",
]
skip_glob = [
"*.pxd",
"*.pyx",
"*pb2*.py",
"**/examples/**/*.py",
"**/portability/api/**/*.py",
"**/portability/api/__init__.py",
]

[tool.ruff]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
"*.pxd",
"*.pyx",
"*pb2*.py",
"**/examples/**/*.py",
"**/examples/**/*.ipynb",
"**/portability/api/**/*.py",
"**/portability/api/__init__.py",
]
target-version = "py310"
src = ["apache_beam"]

[tool.ruff.lint]
select = ["E9", "PL", "F821", "F822", "F823"]
ignore = [
"PLC0415",
"PLR2004",
"PLR0913",
"PLR0912",
"PLW0108",
"PLW2901",
"PLR0915",
"PLR1714",
"PLR0911",
"PLR5501",
"PLW0603",
"PLR1730",
"PLW1641",
"PLW0602",
"PLC1802",
"PLC3002",
"PLW0642",
"PLR1733",
"PLR0402",
"PLC0132",
"PLC0206",
"PLC0207",
"PLR1704",
"PLR1711",
"PLW0406",
"PLW3301",
"PLR2044",
]
fixable = ["ALL"]
unfixable = []
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
Comment thread
jrmccluskey marked this conversation as resolved.

[tool.pyrefly]
project-includes = ["apache_beam"]
python-version = "3.10.0"
ignore-missing-imports = ["*"]
untyped-def-behavior = "skip-and-infer-return-any"

[tool.pyrefly.errors]
missing-attribute = "ignore"
invalid-annotation = "ignore"
redundant-condition = "ignore"
untyped-import = "ignore"
bad-param-name-override = "ignore"
Comment thread
jrmccluskey marked this conversation as resolved.
bad-override = "ignore"
bad-argument-type = "ignore"
unsupported-operation = "ignore"
implicit-import = "ignore"
bad-function-definition = "ignore"
bad-return = "ignore"
unbound-name = "ignore"
no-matching-overload = "ignore"
bad-assignment = "ignore"
missing-argument = "ignore"
bad-index = "ignore"
invalid-type-var = "ignore"
unknown-name = "ignore"
not-a-type = "ignore"
deprecated = "ignore"
not-callable = "ignore"
invalid-argument = "ignore"
invalid-inheritance = "ignore"
not-iterable = "ignore"
unexpected-keyword = "ignore"
bad-specialization = "ignore"
bad-context-manager = "ignore"
invalid-yield = "ignore"
bad-argument-count = "ignore"
bad-typed-dict-key = "ignore"
60 changes: 0 additions & 60 deletions sdks/python/pyrefly.toml

This file was deleted.

96 changes: 0 additions & 96 deletions sdks/python/ruff.toml

This file was deleted.

Loading