Skip to content

Commit d862629

Browse files
committed
cleanup
1 parent ae1afb0 commit d862629

File tree

10 files changed

+1478
-122
lines changed

10 files changed

+1478
-122
lines changed

.github/pull_request_template.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.13-alpine
1+
FROM python:3.11-alpine
22
RUN mkdir /app
33
WORKDIR /app
44
COPY requirements.txt .

Pipfile

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,75 @@
1+
#
2+
# Pipfile for managing project dependencies
3+
#
4+
# References:
5+
# - https://pipenv.pypa.io/en/latest/pipfile.html
6+
#
17
[[source]]
8+
# https://pipenv.pypa.io/en/latest/pipfile.html#packages-section
29
url = "https://pypi.org/simple"
310
verify_ssl = true
411
name = "pypi"
512

13+
[scripts]
14+
# https://pipenv.pypa.io/en/latest/pipfile.html#packages-section
15+
616
[packages]
17+
# https://pipenv.pypa.io/en/latest/pipfile.html#packages-section
718
six = "*"
819
appdirs = "*"
920

1021
[dev-packages]
22+
# https://pipenv.pypa.io/en/latest/pipfile.html#packages-section
1123
mypy = "*"
1224
flake8 = "*"
1325
pytest = "*"
26+
black = "*"
27+
isort = "*"
28+
check-manifest = "*"
29+
coverage = "*"
30+
pycodestyle = "*"
31+
pytest = "*"
32+
pytest-cov = "*"
33+
pytest-html = "*"
34+
pytest-json-report = "*"
35+
tox = "*"
36+
tox-travis = "*"
37+
twine = "*"
38+
wheel = "*"
39+
sphinx = "*"
40+
sphinxcontrib-napoleon = "*"
41+
guzzle_sphinx_theme = "*"
42+
43+
[docs]
44+
# https://pipenv.pypa.io/en/latest/pipfile.html#packages-section
45+
sphinx = "*"
46+
sphinxcontrib-napoleon = "*"
47+
guzzle_sphinx_theme = "*"
48+
49+
[tests]
50+
# https://pipenv.pypa.io/en/latest/pipfile.html#packages-section
51+
check-manifest = "*"
52+
coverage = "*"
53+
pycodestyle = "*"
54+
pytest = "*"
55+
pytest-cov = "*"
56+
pytest-html = "*"
57+
pytest-json-report = "*"
58+
tox = "*"
59+
tox-travis = "*"
60+
twine = "*"
61+
wheel = "*"
62+
63+
[pipenv]
64+
# https://pipenv.pypa.io/en/latest/pipfile.html#packages-section
65+
allow_prereleases = true # Allow pre-release versions
66+
disable_pip_input = true # Prevent pipenv from asking for input
67+
install_search_all_sources = true # Search all sources when installing from lock
68+
sort_pipfile = true # Sort packages alphabeticallyy
1469

1570
[requires]
16-
python_version = "3.11"
71+
python_version = "3.11.14"
72+
73+
# how to update Pipfile.lock:
74+
# 1. pipenv lock --clear
75+
# 2. pipenv install --dev

Pipfile.lock

Lines changed: 1390 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pytest.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ minversion = 7.0
1111

1212
; required plugins and version constraints
1313
required_plugins =
14-
pytest-cov>=6.1.1
15-
pytest-html>=4.1.1
14+
pytest-cov>=7.0.0
15+
pytest-html>=4.2.0
1616
pytest-json-report>=1.5.0
1717

1818
# cli arguments to pass to pytest

requirements-dev.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Updated by depupdate.py on 2026-02-05T22:27:06 by user
2+
# Do not edit this section manually.
3+
mypy==1.19.1
4+
flake8==7.3.0
5+
pytest==9.0.2
6+
black==26.1.0
7+
isort==7.0.0
8+
check-manifest==0.51
9+
coverage==7.13.3
10+
pycodestyle==2.14.0
11+
pytest==9.0.2
12+
pytest-cov==7.0.0
13+
pytest-html==4.2.0
14+
pytest-json-report==1.5.0
15+
tox==4.34.1
16+
tox-travis==0.13
17+
twine==6.2.0
18+
wheel==0.46.3
19+
sphinx==9.0.4
20+
sphinxcontrib-napoleon==0.7
21+
guzzle_sphinx_theme==0.7.11

requirements.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +0,0 @@
1-
# Updated by depupdate.py on 2025-05-29T00:19:36 by user
2-
# Do not edit this section manually.
3-
six==1.17.0
4-
appdirs==1.4.4

scripts/depupdate.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from subprocess import CalledProcessError, PIPE, check_call, run
1717

1818
# script version
19-
__version__ = "0.0.1"
19+
__version__ = "0.0.2"
2020

2121
_SCRIPT_NAME = os.path.splitext(os.path.basename(__file__))[0]
2222

@@ -96,13 +96,6 @@ def argument_parser(**kwargs):
9696
required=False,
9797
help="path to log file"
9898
)
99-
parser.add_argument(
100-
"input",
101-
nargs="?",
102-
default="-",
103-
type=_filetype_read,
104-
help="program input"
105-
)
10699
parser.add_argument(
107100
"-o", "--output",
108101
action="store",
@@ -378,8 +371,6 @@ def main(*args):
378371
prog, __version__, return_code
379372
)
380373

381-
if args.input and not args.input.closed:
382-
args.input.close()
383374
if args.output and not args.output.closed:
384375
args.output.close()
385376

setup.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ def __find_meta(filepath):
5353
5454
Args:
5555
filepath (str): Path to the file.
56-
**kwargs: Additional arguments for `open()`.
5756
5857
Returns:
5958
dict: A dictionary containing the metadata.
@@ -263,14 +262,7 @@ def __readlines(filepath, **kwargs):
263262
"tox-travis",
264263
"twine",
265264
"wheel"
266-
],
267-
":python_version==\"2.6\"": [
268-
"ordereddict==1.1",
269-
"simplejson==3.3.0"
270-
],
271-
":python_version==\"2.7\"": [
272-
"ipaddress"
273-
],
265+
]
274266
}
275267

276268
INCLUDE_PACKAGE_DATA = False

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tox]
22
envlist =
33
coverage-clean
4-
{python2.7,python3.6,python3.7,python3.8,python3.9}
4+
{python2.7,python3.6,python3.7,python3.8,python3.9,python3.10,python3.11}-tests
55
docs
66
manifest
77
readme
@@ -47,7 +47,7 @@ deps = coverage
4747
commands = coverage erase
4848

4949
[testenv:coverage-report]
50-
basepython = python3.9
50+
basepython = python3.11
5151
skip_install = true
5252
deps = coverage
5353
commands =

0 commit comments

Comments
 (0)