services:
- docker
-sudo: true
language: c
env:
matrix:
allow_failures:
- env: tag=latest mode=tests
+ include:
+ - name: "Lint: python3 -m flake8 . --select=E9,F63,F72,F82"
+ language: python
+ script:
+ - pip install flake8 # lint Python code for syntax errors
+ - flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics
script:
- echo "/tmp/logbt-coredumps/core.%p.%E" | sudo tee /proc/sys/kernel/core_pattern
"""Writes WKT Raster header based on given GDAL into HEX-encoded WKB."""
assert ds is not None, "Error: Missing GDAL dataset"
assert level >= 1
- assert len(ulp) == 2 is not None, "Error: invalid upper-left corner"
+ assert len(ulp) == 2, "Error: invalid upper-left corner"
if xsize is None or ysize is None:
assert xsize is None and ysize is None
self._sizes = self._query_single_row(sql)
if self._sizes is None:
- raise RasterError("Falied to query %dx%d of band %d is none" %(x, y, band))
+ raise RasterError("Falied to query raster size of dim {} with force {}".format(dim, force))
return self._sizes[dim]
def _query_pixel_types(self):