Skip to content

Commit

Permalink
Clean up CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
garyo committed Sep 9, 2024
1 parent 88a1e4f commit e6e1076
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion sea-surface-temps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
)
Expand Down

0 comments on commit e6e1076

Please sign in to comment.