-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Update astroid
to 2.12
#7153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update astroid
to 2.12
#7153
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ on: | |
- completed | ||
|
||
env: | ||
CACHE_VERSION: 2 | ||
CACHE_VERSION: 1 | ||
|
||
permissions: | ||
contents: read | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
env: | ||
CACHE_VERSION: 2 | ||
CACHE_VERSION: 1 | ||
|
||
jobs: | ||
run-primer: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
env: | ||
CACHE_VERSION: 2 | ||
CACHE_VERSION: 1 | ||
|
||
jobs: | ||
run-primer: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -244,6 +244,7 @@ pragma's | |
pragmas | ||
pre | ||
preorder | ||
prepended | ||
proc | ||
py | ||
pyenchant | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
unused-import:3:0:3:16::Unused import xml.etree:UNDEFINED | ||
unused-import:4:0:4:14::Unused import xml.sax:UNDEFINED | ||
unused-import:5:0:5:22::Unused os.path imported as test:UNDEFINED | ||
unused-import:6:0:6:29::Unused argv imported from sys as test2:UNDEFINED | ||
unused-import:7:0:7:21::Unused flags imported from sys:UNDEFINED | ||
unused-import:9:0:9:51::Unused OrderedDict imported from collections:UNDEFINED | ||
unused-import:9:0:9:51::Unused deque imported from collections:UNDEFINED | ||
unused-import:10:0:10:22::Unused import re:UNDEFINED | ||
unused-import:13:0:13:40::Unused SomeOtherName imported from fake:UNDEFINED | ||
unused-import:48:0:48:9::Unused import os:UNDEFINED | ||
unused-import:79:4:79:19::Unused import unittest:UNDEFINED | ||
unused-import:81:4:81:15::Unused import uuid:UNDEFINED | ||
unused-import:83:4:83:19::Unused import warnings:UNDEFINED | ||
unused-import:85:4:85:21::Unused import compileall:UNDEFINED | ||
unused-import:7:0:7:29::Unused argv imported from sys as test2:UNDEFINED | ||
unused-import:8:0:8:21::Unused flags imported from sys:UNDEFINED | ||
unused-import:10:0:10:51::Unused OrderedDict imported from collections:UNDEFINED | ||
unused-import:10:0:10:51::Unused deque imported from collections:UNDEFINED | ||
unused-import:11:0:11:22::Unused import re:UNDEFINED | ||
unused-import:15:0:15:40::Unused SomeOtherName imported from fake:UNDEFINED | ||
unused-import:50:0:50:9::Unused import os:UNDEFINED | ||
unused-import:81:4:81:19::Unused import unittest:UNDEFINED | ||
unused-import:83:4:83:15::Unused import uuid:UNDEFINED | ||
unused-import:85:4:85:19::Unused import warnings:UNDEFINED | ||
unused-import:87:4:87:21::Unused import compileall:UNDEFINED |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,10 @@ | |
from pylint.pyreverse.diagrams import DiagramEntity, Relationship | ||
from pylint.pyreverse.inspector import Linker, Project | ||
from pylint.testutils.pyreverse import PyreverseConfig | ||
from pylint.testutils.utils import _test_cwd | ||
|
||
HERE = Path(__file__) | ||
TESTS = HERE.parent.parent | ||
|
||
|
||
def _process_classes(classes: list[DiagramEntity]) -> list[tuple[bool, str]]: | ||
|
@@ -50,7 +54,8 @@ def HANDLER(default_config: PyreverseConfig) -> DiadefsHandler: | |
|
||
@pytest.fixture(scope="module") | ||
def PROJECT(get_project): | ||
return get_project("data") | ||
with _test_cwd(TESTS): | ||
Pierre-Sassoulas marked this conversation as resolved.
Show resolved
Hide resolved
|
||
yield get_project("data") | ||
|
||
|
||
def test_option_values( | ||
|
@@ -100,15 +105,15 @@ class TestDefaultDiadefGenerator: | |
("specialization", "Specialization", "Ancestor"), | ||
] | ||
|
||
def test_exctract_relations( | ||
self, HANDLER: DiadefsHandler, PROJECT: Project | ||
) -> None: | ||
@pytest.mark.xfail | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I haven't tried this myself yet, but why is the xfail necessary here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's possible I didn't understand the issue. (A good sign I should remove the comment!) I thought since The failure is that only the last member of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed comments in 916e556 |
||
def test_extract_relations(self, HANDLER: DiadefsHandler, PROJECT: Project) -> None: | ||
"""Test extract_relations between classes.""" | ||
cd = DefaultDiadefGenerator(Linker(PROJECT), HANDLER).visit(PROJECT)[1] | ||
cd.extract_relationships() | ||
relations = _process_relations(cd.relationships) | ||
assert relations == self._should_rels | ||
|
||
@pytest.mark.xfail | ||
def test_functional_relation_extraction( | ||
self, default_config: PyreverseConfig, get_project: Callable | ||
) -> None: | ||
|
Uh oh!
There was an error while loading. Please reload this page.