|
@@ -3,8 +3,6 @@ ignore =
|
|
|
E203, # whitespace before ':' (Black)
|
|
|
W503, # line break before binary operator (Black)
|
|
|
E722, # do not use bare 'except'
|
|
|
- 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
|
|
|
|
|
|
per-file-ignores =
|
|
|
# C wrappers call libgis.G_gisinit before importing other modules.
|
|
@@ -26,7 +24,7 @@ per-file-ignores =
|
|
|
pygrass/modules/grid/*.py: E501, F401
|
|
|
pygrass/raster/*.py: E501
|
|
|
pygrass/raster/rowio.py: E741
|
|
|
- pygrass/rpc/__init__.py: E501, F401
|
|
|
+ pygrass/rpc/__init__.py: E501, F401, F403
|
|
|
pygrass/utils.py: E402, E501
|
|
|
script/db.py: E501
|
|
|
script/task.py: W605
|
|
@@ -45,10 +43,12 @@ per-file-ignores =
|
|
|
docs/conf.py: E402, E501,
|
|
|
# Files not managed by Black
|
|
|
imaging/images2gif.py: E226, E501
|
|
|
- # Unused imports
|
|
|
- */__init__.py: F401,
|
|
|
- */*/__init__.py: F401,
|
|
|
- */*/*/__init__.py: F401
|
|
|
+ # Unused imports in init files
|
|
|
+ # F401 imported but unused
|
|
|
+ # F403 star import used; unable to detect undefined names
|
|
|
+ */__init__.py: F401, F403
|
|
|
+ */*/__init__.py: F401, F403
|
|
|
+ */*/*/__init__.py: F401, F403
|
|
|
|
|
|
|
|
|
max-line-length = 88
|