From e5ce3d085381af043208cb43658491dcaffbc8b6 Mon Sep 17 00:00:00 2001 From: Kai Striega Date: Wed, 22 Nov 2023 08:56:13 +0800 Subject: [PATCH] CI/BENCH: Add style checks for benchmarks --- .github/workflows/lint.yml | 4 ++-- benchmarks/benchmarks.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 47f1db9..7ed2347 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -49,5 +49,5 @@ jobs: poetry run ruff version # Check the source file, ignore type annotations (ANN) for now. poetry run ruff check numpy_financial/ --ignore F403 --select E,F,B,I - # Check the test file - poetry run ruff check tests/ --select E,F,B,I + # Check the test and benchmark files + poetry run ruff check tests/ benchmarks/ --select E,F,B,I diff --git a/benchmarks/benchmarks.py b/benchmarks/benchmarks.py index 1bb4c90..c026937 100644 --- a/benchmarks/benchmarks.py +++ b/benchmarks/benchmarks.py @@ -1,4 +1,5 @@ import numpy as np + import numpy_financial as npf