diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index d85975a..4d9a097 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -28,9 +28,9 @@ jobs: - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names - uv run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + uv run flake8 *.py --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - uv run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + uv run flake8 *.py --count --exit-zero --max-complexity=28 --max-line-length=127 --statistics - name: Test run: | uv run --frozen sea-surface-temps.py --mode map --dataset sst --days-ago 4 diff --git a/sea-surface-temps.py b/sea-surface-temps.py index 110522c..b44173c 100644 --- a/sea-surface-temps.py +++ b/sea-surface-temps.py @@ -373,6 +373,7 @@ def create_cache_dict() -> DefaultDict[int, DefaultDict[int, DefaultDict[int, fl """ return defaultdict(lambda: defaultdict(lambda: defaultdict(float))) + async def process_all(args): async def get_data(dataset_name, session, semaphore, lock): start_year = args.start_year @@ -495,7 +496,8 @@ def years_ago(n): ) plt.title(title) plt.suptitle( - f"Years: {years[0]}-{years[-1]}. Created {datetime.datetime.now()}\nCopyright {datetime.date.today().year} Gary Oberbrunner", + f"Years: {years[0]}-{years[-1]}. Created {datetime.datetime.now()}\n" + + f"Copyright {datetime.date.today().year} Gary Oberbrunner", fontsize=7, y=0.97, )