-
Notifications
You must be signed in to change notification settings - Fork 26
/
.flake8
50 lines (43 loc) · 2.12 KB
/
.flake8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[flake8]
max-line-length = 120
ignore =
# E203 is not PEP 8 compliant. https://github.com/PyCQA/pycodestyle/issues/373
E203
# Linebreaks before/after unary operators are okay
W503, W504
exclude =
# Don't need to check .git
.git,
# Largely autogenerated
docs/conf.py
# Keeping bad python format to match PETSc source code
libensemble/sim_funcs/chwirut1.py
examples/sim_funcs/chwirut1.py
# Note that you can use wildcard exceptions with something such as
# libensemble/libensemble/tests/regression_tests/*:F401
per-file-ignores =
# init needs to import the logger.
libensemble/__init__.py:F401
# Need to turn of matching probes (before other imports) on some
# systems/versions of MPI:
libensemble/tests/standalone_tests/mpi_launch_test/create_mpi_jobs.py:E402
# Matplotlib needs something set before import
scripts/*:E402
# Ignoring linelength in APOSMM
libensemble/gen_funcs/*aposmm.py:E501
examples/gen_funcs/*aposmm.py:E501
libensemble/tests/functionality_tests/test_mpi_runners.py:E501
libensemble/tests/functionality_tests/test_mpi_runners_zrw_supernode_uneven.py:E501
# Need to set something before the APOSMM import
libensemble/tests/scaling_tests/warpx/run_libensemble_on_warpx.py:E402
examples/calling_scripts/run_libensemble_on_warpx.py:E402
libensemble/tests/regression_tests/test_persistent_aposmm*:E402
libensemble/tests/regression_tests/test_persistent_gp_multitask_ax.py:E402
libensemble/tests/regression_tests/test_ytopt_heffte.py:E402
libensemble/tests/functionality_tests/test_uniform_sampling_then_persistent_localopt_runs.py:E402
libensemble/tests/functionality_tests/test_stats_output.py:E402
libensemble/tests/functionality_tests/test_active_persistent_worker_abort.py:E402
libensemble/tests/unit_tests/test_persistent_aposmm.py:E402
libensemble/tests/unit_tests/RENAME_test_persistent_aposmm.py:E402
# Allow undefined name '__version__'
setup.py:F821