From d7ad66b3f8fdf8673360c8d50043eb2ecdb1f8a9 Mon Sep 17 00:00:00 2001 From: Dzmitry Izaitka Date: Fri, 26 May 2023 13:27:02 +0300 Subject: [PATCH] dynamic version --- .pre-commit-config.yaml | 7 +++++++ xspf_lib/__init__.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 19447b0..58d5f9d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,6 +28,13 @@ repos: rev: v1.3.0 hooks: - id: mypy + - repo: https://github.com/pycqa/flake8 + rev: 5.0.4 + hooks: + - id: flake8 + args: ["xspf_lib"] + additional_dependencies: + - flake8-pyprojecttoml - repo: local hooks: - id: pytest diff --git a/xspf_lib/__init__.py b/xspf_lib/__init__.py index c44ad2d..ce92a3d 100644 --- a/xspf_lib/__init__.py +++ b/xspf_lib/__init__.py @@ -3,7 +3,7 @@ __all__ = ["Playlist", "Track", "Attribution", "Extension", "Link", "Meta", "URI"] import xml.etree.ElementTree as Et -from ._version import __version__ +from ._version import __version__ # noqa: F401 unused but used from .constants import XML_NAMESPACE from .elements import Attribution, Extension, Link, Meta, Playlist, Track from .types import URI