Bug 1817240 - Cherry-pick ANGLE skylake clearview fix. r=gfx-reviewers,lsalzman
[gecko.git] / .flake8
bloba27dfabab0038646fd3d86740e62f871864c9e84
1 [flake8]
2 max-line-length = 99
3 exclude =
4     # These paths should be triaged and either fixed or moved to the list below.
5     devtools/shared,
6     dom/bindings/Codegen.py,
7     dom/bindings/parser/WebIDL.py,
8     dom/bindings/parser/tests/test_arraybuffer.py,
9     dom/bindings/parser/tests/test_securecontext_extended_attribute.py,
10     gfx/tests,
11     ipc/ipdl/ipdl,
12     layout/base/tests/marionette,
13     layout/reftests/border-image,
14     layout/reftests/fonts,
15     layout/reftests/w3c-css,
16     layout/style,
17     media/libdav1d/generate_source.py,
18     moz.configure,
19     netwerk/dns/prepare_tlds.py,
20     netwerk/protocol/http/make_incoming_tables.py,
21     python/l10n/fluent_migrations,
22     security/manager/ssl/tests/unit,
23     servo/components/style,
24     testing/condprofile/condprof/android.py,
25     testing/condprofile/condprof/creator.py,
26     testing/condprofile/condprof/desktop.py,
27     testing/condprofile/condprof/runner.py,
28     testing/condprofile/condprof/scenarii/heavy.py,
29     testing/condprofile/condprof/scenarii/settled.py,
30     testing/condprofile/condprof/scenarii/synced.py
31     testing/condprofile/condprof/helpers.py,
32     testing/jsshell/benchmark.py,
33     testing/marionette/mach_commands.py,
34     testing/mozharness/docs,
35     testing/mozharness/examples,
36     testing/mozharness/external_tools,
37     testing/mozharness/mach_commands.py,
38     testing/mozharness/manifestparser,
39     testing/mozharness/mozprocess,
40     testing/mozharness/setup.py,
41     testing/parse_build_tests_ccov.py,
42     testing/runtimes/writeruntimes.py,
43     testing/tools/iceserver/iceserver.py,
44     testing/tools/websocketprocessbridge/websocketprocessbridge.py,
45     toolkit/components/featuregates,
46     toolkit/content/tests/chrome/file_about_networking_wsh.py,
47     toolkit/library/build/dependentlibs.py,
48     toolkit/locales/generate_update_locale.py,
49     toolkit/mozapps,
50     toolkit/moz.configure,
51     toolkit/nss.configure,
53     # mako files are not really python files
54     *.mako.py,
56     # These paths are intentionally excluded (not necessarily for good reason).
57     build/moz.configure/*.configure,
58     build/pymake/,
59     browser/extensions/mortar/ppapi/,
60     browser/moz.configure,
61     dom/canvas/test/webgl-conf/checkout/closure-library/,
62     editor/libeditor/tests/browserscope/,
63     intl/icu/,
64     ipc/chromium/src/third_party/,
65     js/*.configure,
66     gfx/angle/,
67     gfx/harfbuzz,
68     gfx/skia/,
69     memory/moz.configure,
70     mobile/android/*.configure,
71     node_modules,
72     python/mozbuild/mozbuild/test/configure/data,
73     security/nss/,
74     testing/marionette/harness/marionette_harness/runner/mixins,
75     testing/marionette/harness/marionette_harness/tests,
76     testing/mochitest/pywebsocket3,
77     testing/mozharness/configs/test/test_malformed.py,
78     testing/web-platform/tests,
79     tools/lint/test/files,
80     tools/crashreporter/*.configure,
81     .ycm_extra_conf.py,
83 # See:
84 #   - http://flake8.pycqa.org/en/latest/user/error-codes.html
85 #   - http://pep8.readthedocs.io/en/latest/intro.html#configuration
86 ignore =
87     # These should be triaged and either fixed or moved to the list below.
88     W605, W606,
89     # These are intentionally disabled (not necessarily for good reason).
90     #   F723: syntax error in type comment
91     #       text contains quotes which breaks our custom JSON formatter
92     F723, E704, E741,
94     # black is already in charge of formatting, no need to start a formatter
95     # battle here
96     E1, W1, E2, W2, E3, W3, E4, W4, E5, W5
98 per-file-ignores =
99     # These paths are intentionally excluded.
100     ipc/ipdl/*: F403, F405
101     layout/tools/reftest/selftest/conftest.py: F811
102     # cpp_eclipse has a lot of multi-line embedded XML which exceeds line length
103     python/mozbuild/mozbuild/backend/cpp_eclipse.py: E501
104     testing/firefox-ui/**/__init__.py: F401
105     testing/marionette/**/__init__.py: F401
106     testing/mochitest/tests/python/conftest.py: F811
107     testing/mozbase/manifestparser/tests/test_filters.py: E731
108     testing/mozbase/mozlog/tests/test_formatters.py: E501
109     testing/mozharness/configs/*: E124, E127, E128, E131, E231, E261, E265, E266, E501, W391
111     # These paths contain Python-2 only syntax which cause errors since flake8
112     # is run with Python 3.
113     build/compare-mozconfig/compare-mozconfigs.py: F821
114     build/midl.py: F821
115     build/pgo/genpgocert.py: F821
116     config/MozZipFile.py: F821
117     config/check_source_count.py: F821
118     config/tests/unitMozZipFile.py: F821
119     ipc/pull-chromium.py: F633
120     js/src/**: F633, F821
121     python/mozbuild/mozbuild/action/dump_env.py: F821
122     python/mozbuild/mozbuild/dotproperties.py: F821
123     python/mozbuild/mozbuild/testing.py: F821
124     python/mozbuild/mozbuild/util.py: F821
125     testing/mozharness/mozharness/mozilla/testing/android.py: F821
126     testing/mochitest/runtests.py: F821
128 builtins =
129     # For GDB extensions
130     gdb