diff --git a/.flake8 b/.flake8 new file mode 100644 index 000000000..1970828aa --- /dev/null +++ b/.flake8 @@ -0,0 +1,23 @@ +[flake8] +ignore = + E20, # Extra space in brackets + E231,E241, # Multiple spaces around "," + E26, # Comments + E731, # Assigning lambda expression + E741, # Ambiguous variable names + W503, # line break before binary operator + W504, # line break after binary operator +max-line-length = 80 + +exclude = + __pycache__ + .git + *.pyc + *~ + *.o + *.so + *.cpp + *.c + *.h + __init__.py + _version.py diff --git a/buildscripts/azure/azure-linux-macos.yml b/buildscripts/azure/azure-linux-macos.yml index 733e89b69..4d00372e9 100644 --- a/buildscripts/azure/azure-linux-macos.yml +++ b/buildscripts/azure/azure-linux-macos.yml @@ -31,7 +31,7 @@ jobs: - script: | export PATH=$HOME/miniconda3/bin:$PATH conda install -y flake8 - flake8 numba + flake8 llvmlite displayName: 'Flake8' condition: eq(variables['RUN_FLAKE8'], 'yes')