Commit ffdb71b2 authored by Nicolas Garcia Ospina's avatar Nicolas Garcia Ospina
Browse files

Added code formatting

parent db13d74c
SOURCES=obmgapanalysis tests setup.py
LENGTH=96
check: $(SOURCES)
flake8 --max-line-length=$(LENGTH) $^
black --check --line-length $(LENGTH) $^
pylint -E $^
black: $(SOURCES)
black --line-length $(LENGTH) $^
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
from setuptools import setup, find_packages from setuptools import setup, find_packages
tests_require = ["pytest"] tests_require = ["pytest"]
linters_require = ["black>=20.8b1", "pylint", "flake8"]
setup( setup(
name="obmgapanalysis", name="obmgapanalysis",
...@@ -11,7 +12,10 @@ setup( ...@@ -11,7 +12,10 @@ setup(
keywords="OpenBuildingMap, buildings, analysis", keywords="OpenBuildingMap, buildings, analysis",
author="Helmholtz-Zentrum Potsdam Deutsches GeoForschungsZentrum GFZ", author="Helmholtz-Zentrum Potsdam Deutsches GeoForschungsZentrum GFZ",
install_requires=["numpy"], install_requires=["numpy"],
tests_require=tests_require, extras_require={
"tests": tests_require,
"linters": linters_require,
},
packages=find_packages(), packages=find_packages(),
entry_points={"console_scripts": ["obmgapanalysis = obmgapanalysis.obmgapanalysis:main"]}, entry_points={"console_scripts": ["obmgapanalysis = obmgapanalysis.obmgapanalysis:main"]},
python_requires=">=3.7", python_requires=">=3.7",
......
...@@ -4,5 +4,6 @@ import logging ...@@ -4,5 +4,6 @@ import logging
logger = logging.getLogger() logger = logging.getLogger()
def test_func(): def test_func():
pass pass
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment