Skip to content

Commit b6f1c45

Browse files
committed
fix(github): pyright;
- Activate python venv before pyright.
1 parent d1f7113 commit b6f1c45

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/pyright.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,6 @@ jobs:
4141
- name: Check types
4242
if: steps.pydepends.outcome == 'success'
4343
run: |
44+
source /home/runner/work/app/bin/activate
4445
cd /home/runner/work/app/src/ckanext-language-domains
4546
npx pyright

ckanext/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
# this is a namespace package
44
try:
55
import pkg_resources
6-
# type_ignore_reason: reportAttributeAccessIssue
7-
pkg_resources.declare_namespace(__name__) # type: ignore
6+
pkg_resources.declare_namespace(__name__)
87
except ImportError:
98
import pkgutil
109
__path__ = pkgutil.extend_path(__path__, __name__)

0 commit comments

Comments
 (0)