Bug 1631941 - Add writing mode assertions for mozilla::LogicalSides. r=jfkthame
[gecko.git] / .flake8
blobf49b030126f3d67ca283ffa2b3785851d2d4f6a4
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     client.py,
6     devtools/shared,
7     dom/base,
8     dom/bindings,
9     dom/browser-element,
10     dom/canvas,
11     dom/encoding,
12     dom/websocket,
13     gfx/tests,
14     ipc/ipdl/ipdl,
15     layout/base/tests/marionette,
16     layout/reftests/border-image,
17     layout/reftests/fonts,
18     layout/reftests/w3c-css,
19     layout/style,
20     media/libdav1d/generate_source.py,
21     moz.configure,
22     netwerk/dns/prepare_tlds.py,
23     netwerk/protocol/http/make_incoming_tables.py,
24     python/devtools/migrate-l10n/migrate/main.py,
25     python/l10n/fluent_migrations,
26     python/mozbuild/dumbmake,
27     security/manager/ssl/tests/unit,
28     servo/components/style,
29     testing/condprofile/condprof/android.py,
30     testing/condprofile/condprof/creator.py,
31     testing/condprofile/condprof/desktop.py,
32     testing/condprofile/condprof/runner.py,
33     testing/condprofile/condprof/scenarii/heavy.py,
34     testing/condprofile/condprof/scenarii/settled.py,
35     testing/condprofile/condprof/scenarii/synced.py
36     testing/condprofile/condprof/helpers.py,
37     testing/jsshell/benchmark.py,
38     testing/marionette/mach_commands.py,
39     testing/mozharness/docs,
40     testing/mozharness/examples,
41     testing/mozharness/external_tools,
42     testing/mozharness/mach_commands.py,
43     testing/mozharness/manifestparser,
44     testing/mozharness/mozprocess,
45     testing/mozharness/setup.py,
46     testing/parse_build_tests_ccov.py,
47     testing/runtimes/writeruntimes.py,
48     testing/tools/iceserver/iceserver.py,
49     testing/tools/view_gecko_profile/view_gecko_profile.py,
50     testing/tools/websocketprocessbridge/websocketprocessbridge.py,
51     testing/web-platform,
52     toolkit/components/featuregates,
53     toolkit/content/tests/chrome/file_about_networking_wsh.py,
54     toolkit/library/build/dependentlibs.py,
55     toolkit/locales/generate_update_locale.py,
56     toolkit/mozapps,
57     toolkit/moz.configure,
58     toolkit/nss.configure,
60     # These paths are intentionally excluded (not necessarily for good reason).
61     build/build-infer/build-infer.py,
62     build/moz.configure/*.configure,
63     build/pymake/,
64     browser/extensions/mortar/ppapi/,
65     browser/moz.configure,
66     dom/canvas/test/webgl-conf/checkout/closure-library/,
67     editor/libeditor/tests/browserscope/,
68     intl/icu/,
69     ipc/chromium/src/third_party/,
70     js/*.configure,
71     gfx/angle/,
72     gfx/harfbuzz,
73     gfx/skia/,
74     memory/moz.configure,
75     mobile/android/*.configure,
76     node_modules,
77     python/mozbuild/mozbuild/test/configure/data,
78     security/nss/,
79     testing/marionette/harness/marionette_harness/runner/mixins,
80     testing/marionette/harness/marionette_harness/tests,
81     testing/mochitest/pywebsocket,
82     testing/mozharness/configs/test/test_malformed.py,
83     tools/lint/test/files,
84     tools/infer/test/*.configure,
85     tools/crashreporter/*.configure,
86     .ycm_extra_conf.py,
88     # This file uses py3.7 only syntax, so can't currently be checked by flake8 in-tree
89     tools/crashreporter/system-symbols/win/symsrv-fetch.py
91 # See:
92 #   - http://flake8.pycqa.org/en/latest/user/error-codes.html
93 #   - http://pep8.readthedocs.io/en/latest/intro.html#configuration
94 ignore =
95     # These should be triaged and either fixed or moved to the list below.
96     W504, W605, W606,
97     # These are intentionally disabled (not necessarily for good reason).
98     #   F723: syntax error in type comment
99     #       text contains quotes which breaks our custom JSON formatter
100     F723, E121, E123, E126, E129, E133, E226, E241, E242, E402, E704, E741, W503,
102 per-file-ignores =
103     # These paths are intentionally excluded.
104     ipc/ipdl/*: F403, F405
105     layout/tools/reftest/selftest/conftest.py: F811
106     # cpp_eclipse has a lot of multi-line embedded XML which exceeds line length
107     python/mozbuild/mozbuild/backend/cpp_eclipse.py: E501
108     testing/firefox-ui/**/__init__.py: F401
109     testing/marionette/**/__init__.py: F401
110     testing/mochitest/tests/python/conftest.py: F811
111     testing/mozbase/manifestparser/tests/test_filters.py: E731
112     testing/mozharness/configs/*: E124, E127, E128, E131, E231, E261, E265, E266, E501, W391
114     # These paths contain Python-2 only syntax which cause errors since flake8
115     # is run with Python 3.
116     browser/app/macversion.py: F633
117     build/**: F633, F821
118     config/**: F633, F821
119     ipc/pull-chromium.py: F633
120     js/**: F633, F821
121     memory/**: F821
122     mozglue/**: F821
123     python/mozbuild/**: F821
124     python/mozversioncontrol/**: F821
125     testing/mozharness/**: F821
126     testing/talos/**: F821
127     toolkit/components/telemetry/**: F821
128     tools/tryselect/**: F821
129     testing/firefox-ui/tests/functional/safebrowsing/test_initial_download.py: F821
130     testing/gtest/rungtests.py: F633
131     testing/marionette/**: F821
132     testing/mochitest/**: F821
133     testing/xpcshell/**: F633, F821
134     xpcom/idl-parser/xpidl/**: F633, F821