Skip to content

Commit

Permalink
Add flake8 pre-commit check and fix redirector violation
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarkall committed Aug 1, 2024
1 parent e0514d7 commit 7487e86
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
repos: []
repos:
- repo: https://github.com/PyCQA/flake8
rev: 7.1.0
hooks:
- id: flake8
6 changes: 4 additions & 2 deletions site-packages/_numba_cuda_redirector.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ def ensure_initialized(self):
return False

self.numba_path = numba_search_locations[0]
self.numba_cuda_path = str((pathlib.Path(numba_cuda_search_locations[0]) /
'numba'))

location = numba_cuda_search_locations[0]
self.numba_cuda_path = str((pathlib.Path(location) / 'numba'))

self.initialized = True
return True

Expand Down

0 comments on commit 7487e86

Please sign in to comment.