-
Notifications
You must be signed in to change notification settings - Fork 23
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
style: followup for recent ansible-lint related changes #179
style: followup for recent ansible-lint related changes #179
Conversation
- remove Python 2 bits as minimal supported version is Python 3.9 - silence linters for incomplete stub classes for failed imports - minor type annotations fixes
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #179 +/- ##
==========================================
+ Coverage 76.53% 76.79% +0.25%
==========================================
Files 3 3
Lines 179 181 +2
Branches 12 12
==========================================
+ Hits 137 139 +2
Misses 42 42
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
# pylint: enable=no-name-in-module | ||
try: | ||
from pcs.common.async_tasks.dto import CommandDto, CommandOptionsDto | ||
except ImportError: | ||
HAS_PCS = False | ||
PCS_IMPORT_ERROR = traceback.format_exc() | ||
PCS_IMPORT_ERROR: Optional[str] = traceback.format_exc() |
Check notice
Code scanning / CodeQL
Unused global variable Note
# pylint: enable=no-name-in-module | ||
try: | ||
from pcs.common.async_tasks.dto import CommandDto, CommandOptionsDto | ||
except ImportError: | ||
HAS_PCS = False | ||
PCS_IMPORT_ERROR = traceback.format_exc() | ||
PCS_IMPORT_ERROR: Optional[str] = traceback.format_exc() |
Check notice
Code scanning / CodeQL
Unused global variable Note
[citest] |
This branch updates downstream GitLab CI configuration to match changes done to upstream CI to support recent ansible-lint. It also fixes issues reported by woke, isort, pylint and mypy linters.