-
Notifications
You must be signed in to change notification settings - Fork 112
chore: update linters #2038
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
Closed
Closed
chore: update linters #2038
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ authors = [{"email" = "[email protected]", "name" = "Bradley A. Thornton"}] | |
classifiers = [ | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Operating System :: OS Independent', | ||
'Topic :: Software Development :: Testing', | ||
'Topic :: Software Development :: Quality Assurance', | ||
|
@@ -30,7 +29,7 @@ classifiers = [ | |
description = "A text-based user interface (TUI) for the Red Hat Ansible Automation Platform" | ||
dynamic = ["version", "dependencies", "optional-dependencies"] | ||
keywords = ["ansible"] | ||
license = {text = "Apache"} | ||
license = "Apache-2.0" | ||
maintainers = [{"email" = "[email protected]", "name" = "Ansible by Red Hat"}] | ||
name = "ansible-navigator" | ||
readme = "README.md" | ||
|
@@ -51,7 +50,7 @@ repository = "https://github.com/ansible/ansible-navigator" | |
source = ["src", ".tox/*/site-packages"] | ||
|
||
[tool.coverage.report] | ||
exclude_lines = ["pragma: no cover", "if TYPE_CHECKING:"] | ||
exclude_also = ["pragma: no cover", "if TYPE_CHECKING:"] | ||
show_missing = true | ||
skip_covered = true | ||
|
||
|
@@ -69,6 +68,7 @@ disallow_any_generics = true | |
# disallow_untyped_calls = true | ||
disallow_untyped_defs = true | ||
error_summary = true | ||
exclude_gitignore = true | ||
incremental = false | ||
python_version = "3.10" | ||
|
||
|
@@ -359,7 +359,7 @@ filterwarnings = [ | |
"ignore::pytest.PytestUnraisableExceptionWarning", | ||
"ignore::DeprecationWarning:ansible_runner" | ||
] | ||
junit_family = "legacy" # see https://docs.codecov.com/docs/test-analytics | ||
junit_family = "xunit2" # see https://docs.codecov.com/docs/test-analytics | ||
|
||
[tool.pytest_env] | ||
PYTEST_CHECK_TEST_DUPLICATE = 0 | ||
|
@@ -442,7 +442,7 @@ optional-dependencies.test = {file = [".config/requirements-test.in"]} | |
|
||
[tool.setuptools_scm] | ||
local_scheme = "no-local-version" | ||
write_to = "src/ansible_navigator/_version.py" | ||
version_file = "src/ansible_navigator/_version.py" | ||
|
||
[tool.tomlsort] | ||
in_place = true | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
"""Conditional imports related to python versions.""" | ||
|
||
import importlib.metadata as importlib_metadata | ||
import sys | ||
|
||
|
||
# https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases | ||
from typing import TypeAlias | ||
|
||
|
||
if sys.version_info < (3, 11): | ||
from importlib.abc import Traversable | ||
else: | ||
try: | ||
from importlib.resources.abc import Traversable | ||
except ImportError: | ||
# pylint: disable-next=deprecated-class | ||
from importlib.abc import Traversable | ||
|
||
|
||
__all__ = ["Traversable", "TypeAlias", "importlib_metadata"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This deprecation is only in Python 3.12+ (https://docs.python.org/3/library/importlib.html#importlib.abc.Traversable), while out pre-commit is running 3.11, so the deprecation won't hit here.