Skip to content

Commit 15404d2

Browse files
Merge branch 'master' into task/patch-numpy
2 parents f007ddd + e47438a commit 15404d2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+6471
-3694
lines changed

.flake8

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[flake8]
2+
extend-ignore =
3+
# whitespace before ':' (currently conflicts with black formatting):
4+
E203,
5+
# missing docstring in public module:
6+
D100,
7+
# missing docstring in public class:
8+
D101,
9+
# missing docstring in public method:
10+
D103,
11+
# missing docstring in public package:
12+
D104,
13+
# missing docstring in magic method:
14+
D105,
15+
# missing docstring in __init__:
16+
D107,
17+
# 1 blank line required between summary line and description:
18+
D205,
19+
# first line should end with a period:
20+
D400,
21+
# first line should be in imperative mood:
22+
D401,
23+
# first line should not be the function's "signature":
24+
D402,
25+
26+
per-file-ignores =
27+
mkl_random/__init__.py: F401
28+
mkl_random/interfaces/__init__.py: F401
29+
30+
filename = *.py, *.pyx, *.pxi, *.pxd
31+
max_line_length = 80
32+
max-doc-length = 80
33+
show-source = True
34+
35+
# Print detailed statistic if any issue detected
36+
count = True
37+
statistics = True

.git-blame-ignore-revs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# $ git config blame.ignoreRevsFile .git-blame-ignore-revs
2+
3+
# Sporadic fixes in test_random.py
4+
e76aa3a5a4b889c0434f0103ec102a50b93ab1ca
5+
6+
# Added pre-commit hooks
7+
6b744ed48c680cd9592819a7febce8610434b0f3
8+
9+
# Added more pre-commit hooks
10+
c52e36d98bbe4b0318d537088eb4f7495278f7bb

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
day: "saturday"
8+
rebase-strategy: "disabled"

.github/workflows/build-docs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
pull-requests: write
1717
steps:
1818
- name: Cancel Previous Runs
19-
uses: styfle/cancel-workflow-action@0.12.1
19+
uses: styfle/cancel-workflow-action@3155a141048f8f89c06b4cdae32e7853e97536bc # v0.13.0
2020
with:
2121
access_token: ${{ github.token }}
2222
- name: Add Intel repository
@@ -33,17 +33,17 @@ jobs:
3333
sudo apt-get install intel-oneapi-compiler-dpcpp-cpp intel-oneapi-mkl-devel
3434
- name: Setup Python
3535
if: ${{ !github.event.pull_request || github.event.action != 'closed' }}
36-
uses: actions/setup-python@v5
36+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3737
with:
38-
python-version: "3.12"
38+
python-version: "3.14"
3939
architecture: x64
4040
- name: Install sphinx dependencies
4141
if: ${{ !github.event.pull_request || github.event.action != 'closed' }}
4242
shell: bash -l {0}
4343
run: |
4444
pip install numpy cython setuptools">=77" scikit-build cmake sphinx sphinx_rtd_theme furo pydot graphviz sphinxcontrib-programoutput sphinxcontrib-googleanalytics sphinx_design
4545
- name: Checkout repo
46-
uses: actions/checkout@v4.1.1
46+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4747
with:
4848
fetch-depth: 0
4949
persist-credentials: false
@@ -53,15 +53,15 @@ jobs:
5353
run: |
5454
# Ensure that SYCL libraries are on LD_LIBRARY_PATH
5555
source /opt/intel/oneapi/setvars.sh
56-
pip install --no-deps --no-build-isolation -e . --verbose
56+
pip install --no-deps --no-build-isolation -e . --verbose
5757
python -c "import mkl_random; print(mkl_random.__version__)" || exit 1
5858
sphinx-build -M html docs/source docs/build
5959
mkdir -p ~/rendered_docs
6060
cp -r docs/build/html/* ~/rendered_docs/
6161
git clean -dfx
6262
- name: Save built docs as an artifact
6363
if: ${{ github.event.pull_request && github.event.action != 'closed'}}
64-
uses: actions/upload-artifact@v4
64+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
6565
with:
6666
name: ${{ env.PACKAGE_NAME }} rendered documentation
6767
path: ~/rendered_docs

.github/workflows/build-with-clang.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
python: ["3.10", "3.11", "3.12", "3.13"]
16-
numpy_version: ["numpy'>=2'"]
15+
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
16+
numpy_version: ["numpy>=2"]
1717
env:
1818
ONEAPI_ROOT: /opt/intel/oneapi
1919

@@ -23,7 +23,7 @@ jobs:
2323

2424
steps:
2525
- name: Cancel Previous Runs
26-
uses: styfle/cancel-workflow-action@0.12.1
26+
uses: styfle/cancel-workflow-action@3155a141048f8f89c06b4cdae32e7853e97536bc # v0.13.0
2727
with:
2828
access_token: ${{ github.token }}
2929

@@ -42,35 +42,35 @@ jobs:
4242
sudo apt-get install intel-oneapi-mkl-devel
4343
4444
- name: Setup Python
45-
uses: actions/setup-python@v5
45+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
4646
with:
4747
python-version: ${{ matrix.python }}
4848
architecture: x64
4949

5050
- name: Checkout repo
51-
uses: actions/checkout@v4
51+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5252
with:
5353
fetch-depth: 0
5454

5555
- name: Install mkl_random dependencies
5656
run: |
5757
pip install cython setuptools">=77"
58-
pip install ${{ matrix.numpy_version }}
58+
pip install "${{ matrix.numpy_version }}"
5959
6060
- name: List oneAPI folder content
61-
run: ls ${{ env.ONEAPI_ROOT }}/compiler
61+
run: ls "${{ env.ONEAPI_ROOT }}/compiler"
6262

6363
- name: Build mkl_random
6464
run: |
65-
source ${{ env.ONEAPI_ROOT }}/setvars.sh
66-
echo $CMPLR_ROOT
67-
export CC=$CMPLR_ROOT/bin/icx
68-
export CXX=$CMPLR_ROOT/bin/icpx
65+
source "${{ env.ONEAPI_ROOT }}/setvars.sh"
66+
echo "$CMPLR_ROOT"
67+
export CC="$CMPLR_ROOT/bin/icx"
68+
export CXX="$CMPLR_ROOT/bin/icpx"
6969
export CFLAGS="${CFLAGS} -fno-fast-math -O2"
7070
pip install -e . --no-build-isolation --no-deps --verbose
7171
7272
- name: Run mkl_random tests
7373
run: |
74-
source ${{ env.ONEAPI_ROOT }}/setvars.sh
74+
source "${{ env.ONEAPI_ROOT }}/setvars.sh"
7575
pip install pytest
7676
pytest -s -v --pyargs mkl_random

0 commit comments

Comments
 (0)