Skip to content

Commit

Permalink
Drop support for python 3.5
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
  • Loading branch information
MasterOdin committed Jun 22, 2024
1 parent 20485b2 commit a93e306
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
os: ['ubuntu-latest']
include:
- python-version: '3.5'
os: ubuntu-2004
- python-version: '3.6'
os: ubuntu-2004

Expand Down
11 changes: 3 additions & 8 deletions pylint_runner/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,7 @@ def _parse_args(self, args):
"-V",
"--version",
action="version",
version="%(prog)s ({0}) for Python {1}".format(
__version__,
PYTHON_VERSION
),
version=f"%(prog)s ({__version__}) for Python {PYTHON_VERSION}",
)

options, rest = parser.parse_known_args(args)
Expand All @@ -93,9 +90,7 @@ def _parse_ignores(self):

error_message = (
colorama.Fore.RED
+ "{} does not appear to be a valid pylintrc file".format(
self.rcfile
)
+ f"{self.rcfile} does not appear to be a valid pylintrc file"
+ colorama.Fore.RESET
)

Expand Down Expand Up @@ -191,7 +186,7 @@ def run(self, output=None, error=None):
if not self._is_using_default_rcfile():
# insert this at the front so it's not after any potential
# positional arguments
self.args.insert(0, "--rcfile={}".format(self.rcfile))
self.args.insert(0, f"--rcfile={self.rcfile}")

pylint_version = pylint.__version__.split('.')[:3]
pylint_version[2] = re.sub(r'[a-z-].*', '', pylint_version[2])
Expand Down
12 changes: 7 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def get_requirements():

CONSOLE_SCRIPTS = [
"pylint_runner = pylint_runner.main:main",
"pylint_runner{0} = pylint_runner.main:main".format(MAJOR_VERSION),
"pylint_runner{0} = pylint_runner.main:main".format(MAJOR_MINOR_VERSION),
f"pylint_runner{MAJOR_VERSION} = pylint_runner.main:main".format(MAJOR_VERSION),
f"pylint_runner{MAJOR_MINOR_VERSION} = pylint_runner.main:main".format(MAJOR_MINOR_VERSION),
]

DESC = "Run pylint recursively on all py files in current and sub-directories"
Expand All @@ -39,7 +39,7 @@ def get_requirements():
description=DESC,
long_description=LONG_DESC,
entry_points={"console_scripts": CONSOLE_SCRIPTS},
python_requires='>=3.5',
python_requires='>=3.6',
install_requires=get_requirements(),
tests_require=["pytest"],
classifiers=[
Expand All @@ -52,10 +52,12 @@ def get_requirements():
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9"
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
)

0 comments on commit a93e306

Please sign in to comment.