12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- [flake8]
- ignore =
- E121, # continuation line under-indented for hanging indent
- E125, # continuation line with same indent as next logical line
- E127, # continuation line over-indented for visual indent
- E128, # continuation line under-indented for visual indent
- E202, # whitespace before ')'
- E211, # whitespace before '('
- E221, # multiple spaces before operator
- E226, # missing whitespace around arithmetic operator
- E231, # missing whitespace after ':'
- E251, # unexpected spaces around keyword / parameter equals
- E261, # at least two spaces before inline comment
- E265, # block comment should start with '# '
- E266, # too many leading '#' for block comment
- E271, # multiple spaces after keyword
- E272, # multiple spaces before keyword
- E302, # expected 2 blank lines, found 1
- E303, # too many blank lines (3)
- E305, # expected 2 blank lines after class or function definition, found 1
- E501, # line too long (183 > 150 characters)
- E722, # do not use bare 'except'
- E741, # ambiguous variable name 'l'
- F403, # 'from ctypes import *' used; unable to detect undefined names
- F405, # 'RasterRow' may be undefined, or defined from star imports: ctypes, grass.pygrass.raster, grass.pygrass.vector
- F841, # local variable 't0' is assigned to but never used
- W293, # blank line contains whitespace
- W503, # line break before binary operator
- W504, # line break after binary operator
- W605, # invalid escape sequence '\_'
- per-file-ignores =
- # C wrappers call libgis.G_gisinit before importing other modules.
- # TODO: Is this really needed?
- pygrass/vector/__init__.py: E402,
- pygrass/raster/__init__.py: E402,
- pygrass/utils.py: E402,
- # Current benchmarks/tests are changing sys.path before import.
- # Possibly, a different approach should be taken there anyway.
- pygrass/tests/benchmark.py: E402, F401, F821
- # Configuration file for Sphinx:
- # Ignoring import/code mix and line length.
- docs/conf.py: E402, E501,
- # Unused imports
- */__init__.py: F401,
- */*/__init__.py: F401,
- */*/*/__init__.py: F401
- max-line-length = 88
- exclude =
- .git,
- __pycache__,
- .env,
- .venv,
- env,
- venv,
- ENV,
- env.bak,
- venv.bak,
- ctypes,
- pydispatch,
- testsuite,
- builtins =
- _
|