Browse Source

Update pre-commit targets

master
IamTheFij 4 months ago
parent
commit
629a829f46
  1. 4
      Makefile
  2. 5
      setup.py
  3. 7
      tests/paddy_test.py

4
Makefile

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

5
setup.py

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from codecs import open
from os import path
@ -17,7 +18,9 @@ setup(
long_description=long_description,
long_description_content_type="text/markdown",
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_email="",
classifiers=[

7
tests/test_paddy.py → tests/paddy_test.py

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from pathlib import Path
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",
],
Loading…
Cancel
Save