File size: 1,028 Bytes
05c9ac2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
[coverage:run]
omit = */tests/*

[coverage:report]
# Run "pytest --cov=ml-agents --cov=ml-agents-envs --cov=gym-unity" to see the current coverage percentage.
# Run the above plus "--cov-report html" to get a nice visualization of what is/isn't covered in html format.
fail_under = 60


[flake8]
# black will apply a line length of 88 to code but not docstrings/comments
# This seems like a decent compromise between readability and redoing all the docstrings.
max-line-length=120

ignore =
    # Black tends to introduce things flake8 doesn't like, such as "line break before binary operator"
    # or whitespace before ':'. Rather than fight with black, just ignore these for now.
    W503, E203,
    # flake-tidy-import adds this warning, which we don't really care about for now
    I200,

banned-modules = tensorflow = use mlagents.tf_utils instead (it handles tf2 compat).
                 logging = use mlagents_envs.logging_util instead
                 torch = use mlagents.torch_utils instead (handles GPU detection).