Skip to content

Commit a205450

Browse files
authored
Merge pull request #11 from algorandfoundation/missing-module-source-ignore
chore: adjust where we place the reportMissingModuleSource rule ignore
2 parents 7e4c493 + beb26ed commit a205450

File tree

14 files changed

+21
-7
lines changed

14 files changed

+21
-7
lines changed

examples/generators/production_python_smart_contract_python/.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
// Python
1616
"python.analysis.extraPaths": ["${workspaceFolder}/smart_contracts"],
17+
"python.analysis.diagnosticSeverityOverrides": {
18+
"reportMissingModuleSource": "none"
19+
},
1720
"python.defaultInterpreterPath": "${workspaceFolder}/.venv",
1821
"[python]": {
1922
"editor.codeActionsOnSave": {

examples/generators/production_python_smart_contract_python/smart_contracts/hello_world/contract.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# pyright: reportMissingModuleSource=false
21
from algopy import ARC4Contract, arc4
32

43

examples/generators/production_python_smart_contract_typescript/.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717

1818
// Python
1919
"python.analysis.extraPaths": ["${workspaceFolder}/smart_contracts"],
20+
"python.analysis.diagnosticSeverityOverrides": {
21+
"reportMissingModuleSource": "none"
22+
},
2023
"python.defaultInterpreterPath": "${workspaceFolder}/.venv",
2124
"[python]": {
2225
"editor.codeActionsOnSave": {

examples/generators/production_python_smart_contract_typescript/smart_contracts/hello_world/contract.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# pyright: reportMissingModuleSource=false
21
from algopy import ARC4Contract, arc4
32

43

examples/generators/starter_python_smart_contract_python/.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
// Python
1616
"python.analysis.extraPaths": ["${workspaceFolder}/smart_contracts"],
17+
"python.analysis.diagnosticSeverityOverrides": {
18+
"reportMissingModuleSource": "none"
19+
},
1720
"python.defaultInterpreterPath": "${workspaceFolder}/.venv",
1821
"[python]": {
1922
"editor.codeActionsOnSave": {

examples/generators/starter_python_smart_contract_python/smart_contracts/hello_world/contract.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# pyright: reportMissingModuleSource=false
21
from algopy import ARC4Contract, arc4
32

43

examples/generators/starter_python_smart_contract_typescript/.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717

1818
// Python
1919
"python.analysis.extraPaths": ["${workspaceFolder}/smart_contracts"],
20+
"python.analysis.diagnosticSeverityOverrides": {
21+
"reportMissingModuleSource": "none"
22+
},
2023
"python.defaultInterpreterPath": "${workspaceFolder}/.venv",
2124
"[python]": {
2225
"editor.codeActionsOnSave": {

examples/generators/starter_python_smart_contract_typescript/smart_contracts/hello_world/contract.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# pyright: reportMissingModuleSource=false
21
from algopy import ARC4Contract, arc4
32

43

examples/production_python/.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
// Python
1616
"python.analysis.extraPaths": ["${workspaceFolder}/smart_contracts"],
17+
"python.analysis.diagnosticSeverityOverrides": {
18+
"reportMissingModuleSource": "none"
19+
},
1720
"python.defaultInterpreterPath": "${workspaceFolder}/.venv",
1821
"[python]": {
1922
"editor.codeActionsOnSave": {

examples/production_python/smart_contracts/hello_world/contract.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# pyright: reportMissingModuleSource=false
21
from algopy import ARC4Contract, arc4
32

43

examples/starter_python/.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
// Python
1616
"python.analysis.extraPaths": ["${workspaceFolder}/smart_contracts"],
17+
"python.analysis.diagnosticSeverityOverrides": {
18+
"reportMissingModuleSource": "none"
19+
},
1720
"python.defaultInterpreterPath": "${workspaceFolder}/.venv",
1821
"[python]": {
1922
"editor.codeActionsOnSave": {

examples/starter_python/smart_contracts/hello_world/contract.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# pyright: reportMissingModuleSource=false
21
from algopy import ARC4Contract, arc4
32

43

template_content/smart_contracts/{{ contract_name }}/contract.py.jinja

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# pyright: reportMissingModuleSource=false
21
from algopy import ARC4Contract, arc4
32

43

template_content/{% if ide_vscode %}.vscode{% endif %}/settings.json.jinja

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
{% endif %}
1818
// Python
1919
"python.analysis.extraPaths": ["${workspaceFolder}/smart_contracts"],
20+
"python.analysis.diagnosticSeverityOverrides": {
21+
"reportMissingModuleSource": "none"
22+
},
2023
"python.defaultInterpreterPath": "${workspaceFolder}/.venv",
2124
"[python]": {
2225
"editor.codeActionsOnSave": {

0 commit comments

Comments
 (0)