Update pre-commit targets

This commit is contained in:
IamTheFij 2021-02-05 22:38:41 -08:00
parent 99094ae49e
commit 629a829f46
3 changed files with 8 additions and 8 deletions

View File

@ -83,8 +83,8 @@ dist-clean: clean
# Install pre-commit hooks # Install pre-commit hooks
.PHONY: install-hooks .PHONY: install-hooks
install-hooks: $(ENV) install-hooks: devenv
$(ENV)/bin/tox -e pre-commit -- install -f --install-hooks $(ENV)/bin/pre-commit install -f --install-hooks
# Generates test coverage # Generates test coverage
.coverage: .coverage:

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from codecs import open from codecs import open
from os import path from os import path
@ -17,7 +18,9 @@ setup(
long_description=long_description, long_description=long_description,
long_description_content_type="text/markdown", long_description_content_type="text/markdown",
url="https://git.iamthefij.com/iamthefij/padio.git", url="https://git.iamthefij.com/iamthefij/padio.git",
download_url=("https://git.iamthefij.com/iamthefij/padio.git/archive/master.tar.gz"), download_url=(
"https://git.iamthefij.com/iamthefij/padio.git/archive/master.tar.gz"
),
author="iamthefij", author="iamthefij",
author_email="", author_email="",
classifiers=[ classifiers=[

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from pathlib import Path from pathlib import Path
import pytest import pytest
@ -59,11 +60,7 @@ def test_calc_pad_length(file_paths, expected):
], ],
), ),
( (
[ ["file.a123.txt", "file.b123.txt", "ignore.txt"],
"file.a123.txt",
"file.b123.txt",
"ignore.txt"
],
[ [
"file.a123.txt", "file.a123.txt",
], ],