Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
comment: off

1 change: 0 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
[run]
source=threadpoolctl

12 changes: 5 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,13 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.14"
- name: Install ruff
run: |
pip install ruff==0.16.8
- name: Run ruff check

- name: Install pre-commit
run: |
ruff check .
- name: Run ruff format
pip install pre-commit==4.6.2
- name: Run pre-commit checks
run: |
ruff format --diff .
pre-commit run --all-files --show-diff-on-failure

testing:
needs: linting
Expand Down
21 changes: 21 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
default_language_version:
python: python3

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-yaml
- id: check-toml
- id: check-case-conflict
- id: check-added-large-files
- id: detect-private-key

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.17.0'
hooks:
- id: ruff
args: ["--fix"]
- id: ruff-format
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2 changes: 1 addition & 1 deletion tests/_openmp_test_helper/openmp_helpers_outer.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ def check_nested_openmp_loops(int n, nthreads=None):
for i in prange(n, num_threads=num_threads, nogil=True):
inner_num_threads = inner_openmp_loop(n)
outer_num_threads = openmp.omp_get_num_threads()

return outer_num_threads, inner_num_threads
Loading