Skip to content
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

[NEAT-378] 💣 Removed superfluous linters #556

Merged
merged 2 commits into from
Jul 21, 2024
Merged

[NEAT-378] 💣 Removed superfluous linters #556

merged 2 commits into from
Jul 21, 2024

Conversation

doctrino
Copy link
Collaborator

Removed all linters that were already checked by ruff.

Copy link

github-actions bot commented Jul 21, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
22879 16064 70% 60% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
cognite/neat/app/api/routers/rules.py 49% 🟢
cognite/neat/graph/extractors/_mock_graph_generator.py 19% 🟢
cognite/neat/legacy/graph/extractors/_mock_graph_generator.py 83% 🟢
cognite/neat/legacy/rules/models/rules.py 84% 🟢
cognite/neat/rules/models/information/_rules.py 87% 🟢
TOTAL 64% 🟢

updated for commit: d44316d by action🐍

@@ -166,7 +166,7 @@ def get_original_rules_from_workflow(workflow_name: str):
return {"error": f"Workflow {workflow_name} is not found"}
context = workflow.get_context()
rules_data = context["RulesData"]
if type(rules_data) != RulesData:
if type(rules_data) is not RulesData:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upgraded ruff requires this (it is correct to compare memory location of types as types are singletons).

@doctrino doctrino merged commit b90dfeb into main Jul 21, 2024
7 checks passed
@doctrino doctrino deleted the cleanup-linters branch July 21, 2024 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants