Skip to content

Commit 5c2c353

Browse files
Add Pyrefly configuration for Beam Python (#37700)
* Add Pyrefly configuration for Beam Python * apache license * Update sdks/python/pyrefly.toml Co-authored-by: tvalentyn <tvalentyn@users.noreply.github.com> --------- Co-authored-by: tvalentyn <tvalentyn@users.noreply.github.com>
1 parent 32d6bce commit 5c2c353

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

sdks/python/pyrefly.toml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
project-includes = ["apache_beam"]
19+
python-version = "3.10.0"
20+
ignore-missing-imports = ["*"]
21+
untyped-def-behavior = "skip-and-infer-return-any"
22+
23+
[errors]
24+
missing-attribute = "ignore"
25+
invalid-annotation = "ignore"
26+
redundant-condition = "ignore"
27+
untyped-import = "ignore"
28+
# Beam-specific supressions to keep pyrefly green
29+
# These are in descending order of instances, e.g there are
30+
# fewer violations for the check on line 40 than for the check on line 35.
31+
# violations.
32+
#
33+
# TODO(https://github.com/apache/beam/issues/37699): Reduce the number of
34+
# ignored checks.
35+
bad-param-name-override = "ignore"
36+
bad-override = "ignore"
37+
bad-argument-type = "ignore"
38+
unsupported-operation = "ignore"
39+
implicit-import = "ignore"
40+
bad-function-definition = "ignore"
41+
bad-return = "ignore"
42+
unbound-name = "ignore"
43+
no-matching-overload = "ignore"
44+
bad-assignment = "ignore"
45+
missing-argument = "ignore"
46+
bad-index = "ignore"
47+
invalid-type-var = "ignore"
48+
unknown-name = "ignore"
49+
not-a-type = "ignore"
50+
deprecated = "ignore"
51+
not-callable = "ignore"
52+
invalid-argument = "ignore"
53+
invalid-inheritance = "ignore"
54+
not-iterable = "ignore"
55+
unexpected-keyword = "ignore"
56+
bad-specialization = "ignore"
57+
bad-context-manager = "ignore"
58+
invalid-yield = "ignore"
59+
bad-argument-count = "ignore"
60+
bad-typed-dict-key = "ignore"
61+
no-access = "ignore"
62+
bad-unpacking = "ignore"

0 commit comments

Comments
 (0)