Skip to content

Commit

Permalink
Remove useless suppressions and set pylint to use py310 (#234)
Browse files Browse the repository at this point in the history
* Cleanup in compat.py

* Change python version for pylint
  • Loading branch information
shatakshiiii committed Jun 21, 2024
1 parent 153c8e6 commit b3f3c7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ repos:
rev: v3.2.2
hooks:
- id: pylint
language_version: "3.10"
args:
- --output-format=colorized
additional_dependencies:
Expand Down
6 changes: 1 addition & 5 deletions src/ansible_creator/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
here.
"""

# ruff: noqa: F401

import sys


if sys.version_info >= (3, 11):
from importlib.resources.abc import Traversable as _Traversable
else:
from importlib.abc import ( # pylint: disable=deprecated-class
Traversable as _Traversable,
)
from importlib.abc import Traversable as _Traversable

Traversable = _Traversable

0 comments on commit b3f3c7e

Please sign in to comment.