From 50f9f69ea791c520c6fa58f14bad259ff1d724ad Mon Sep 17 00:00:00 2001 From: Vaughn Kottler Date: Fri, 17 May 2024 16:09:47 -0700 Subject: [PATCH] 2.0.1 - Fix ruff warning --- .github/workflows/python-package.yml | 2 +- LICENSE | 2 +- README.md | 4 ++-- config | 2 +- local/variables/package.yaml | 2 +- pyproject.toml | 2 +- vmklib/__init__.py | 4 ++-- vmklib/tasks/python/lint.py | 2 ++ 8 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 0715163..42b7a66 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -69,7 +69,7 @@ jobs: - run: | mk python-release owner=vkottler \ - repo=vmklib version=2.0.0 + repo=vmklib version=2.0.1 if: | matrix.python-version == '3.11' && matrix.system == 'ubuntu-latest' diff --git a/LICENSE b/LICENSE index e97d6f9..241562d 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 Vaughn Kottler +Copyright (c) 2024 Vaughn Kottler Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index f0f54fa..d32b795 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ ===================================== generator=datazen version=3.1.4 - hash=1edf832482aababbb80a2508e4e5b3ce + hash=68e3174cbaf5e937620f00c5fe69e651 ===================================== --> -# vmklib ([2.0.0](https://pypi.org/project/vmklib/)) +# vmklib ([2.0.1](https://pypi.org/project/vmklib/)) [![python](https://img.shields.io/pypi/pyversions/vmklib.svg)](https://pypi.org/project/vmklib/) ![Build Status](https://github.com/vkottler/vmklib/workflows/Python%20Package/badge.svg) diff --git a/config b/config index 117336e..46b7830 160000 --- a/config +++ b/config @@ -1 +1 @@ -Subproject commit 117336ef886174ba499b37eae7c7e17aaa892047 +Subproject commit 46b783061d5a2f4da63ad8ff7bd8b46b9876fcf7 diff --git a/local/variables/package.yaml b/local/variables/package.yaml index e78c2af..54a6a2b 100644 --- a/local/variables/package.yaml +++ b/local/variables/package.yaml @@ -1,5 +1,5 @@ --- major: 2 minor: 0 -patch: 0 +patch: 1 entry: mk diff --git a/pyproject.toml b/pyproject.toml index 3a59417..0f3a492 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta:__legacy__" [project] name = "vmklib" -version = "2.0.0" +version = "2.0.1" description = "Simplify project workflows by standardizing use of GNU Make." readme = "README.md" requires-python = ">=3.10" diff --git a/vmklib/__init__.py b/vmklib/__init__.py index 467fc55..1f29e0b 100644 --- a/vmklib/__init__.py +++ b/vmklib/__init__.py @@ -1,7 +1,7 @@ # ===================================== # generator=datazen # version=3.1.4 -# hash=323a37ac953da26ff2b3ae5654e60ac6 +# hash=0b06924a9490f122f646f491d43e5fd6 # ===================================== """ @@ -10,4 +10,4 @@ DESCRIPTION = "Simplify project workflows by standardizing use of GNU Make." PKG_NAME = "vmklib" -VERSION = "2.0.0" +VERSION = "2.0.1" diff --git a/vmklib/tasks/python/lint.py b/vmklib/tasks/python/lint.py index 7181357..0d170b6 100644 --- a/vmklib/tasks/python/lint.py +++ b/vmklib/tasks/python/lint.py @@ -21,6 +21,7 @@ class PythonLinter(SubprocessLogMixin): """A task for running a Python linter.""" default_requirements = {"venv"} + linter_args: dict[str, list[str]] = {"ruff": ["check"]} @staticmethod def source_args(cwd: Path, project: str, **kwargs) -> List[str]: @@ -51,6 +52,7 @@ async def run(self, inbox: Inbox, outbox: Outbox, *args, **kwargs) -> bool: return await self.exec( str(inbox["venv"]["venv{python_version}"]["bin"].joinpath(linter)), + *self.linter_args.get(linter, []), *args[2:], # Get extra arguments from the environment. *environ_fallback_split(