Skip to content

Commit 5dfb8f2

Browse files
committed
BLD/CI: Add linting to main workflow
1 parent b6d7834 commit 5dfb8f2

File tree

3 files changed

+18
-54
lines changed

3 files changed

+18
-54
lines changed

.github/workflows/lint.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/pythonpackage.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ jobs:
2626
run: |
2727
conda info
2828
conda list
29+
- name: Lint
30+
run: |
31+
set -euo pipefail
32+
# Tell us what version we are using
33+
ruff version
34+
# Check the source file, ignore type annotations (ANN) for now.
35+
ruff check numpy_financial/ --ignore F403 --select E,F,B,I
36+
# Check the test and benchmark files
37+
ruff check tests/ benchmarks/ --select E,F,B,I
2938
- name: Build project
3039
run: |
3140
spin build -v

environment.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,26 @@ name: numpy-financial-dev
66
channels:
77
- conda-forge
88
dependencies:
9+
# Runtime dependencies
910
- python
11+
- numpy
12+
# Build
1013
- cython>=3.0.9
1114
- compilers
1215
- meson
1316
- meson-python
1417
- ninja
15-
- numpy
18+
# Tests
1619
- pytest
1720
- pytest-xdist
1821
- asv>=0.6.0
1922
- hypothesis
23+
# Docs
2024
- myst-parser
2125
- numpydoc
2226
- pydata-sphinx-theme>=0.15.0
2327
- spin
28+
# Lint
29+
- ruff>=0.3.0
30+
# Benchmarks
31+
- asv>=0.6.0

0 commit comments

Comments
 (0)