Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:
- --max-line-length=88

- repo: https://github.com/PyCQA/isort
rev: "6.0.1"
rev: "7.0.0"
hooks:
- id: isort

Expand All @@ -25,7 +25,8 @@ repos:
- id: flake8
additional_dependencies:
[
flake8-pytest-style == 2.1.0,
# https://pypi.org/project/flake8-pytest-style/
flake8-pytest-style == 2.2.0,
]
args:
- --config
Expand All @@ -45,7 +46,7 @@ repos:
)$

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v5.0.0"
rev: "v6.0.0"
hooks:
- id: end-of-file-fixer
- id: mixed-line-ending
Expand All @@ -56,7 +57,7 @@ repos:
exclude: disable_test_trac.py

- repo: https://github.com/pylint-dev/pylint
rev: "v3.3.7"
rev: "v4.0.2"
hooks:
- id: pylint
args:
Expand All @@ -82,7 +83,7 @@ repos:
]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.17.0'
rev: 'v1.18.2'
hooks:
- id: mypy
exclude: examples/.*|bin/did
Expand Down
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[MAIN]
ignore-paths=^bin/.*$
init-hook='import sys; import site; sys.path.extend(site.getsitepackages()); sys.path.append("./.venv/lib64/python3.13/site-packages"); sys.path.append("/usr/lib/python3.13/site-packages")'
init-hook='import sys; import site; sys.path.extend(site.getsitepackages()); sys.path.append("./.venv/lib64/python3.14/site-packages"); sys.path.append("/usr/lib/python3.13/site-packages")'

[MESSAGES]
disable=duplicate-code,missing-function-docstring,missing-module-docstring,missing-class-docstring,fixme,too-many-arguments,too-many-instance-attributes
3 changes: 1 addition & 2 deletions did/base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
""" Config, Date, User and Exceptions """

import codecs
import configparser
import contextlib
import datetime
Expand Down Expand Up @@ -129,7 +128,7 @@ def __init__(self, config: Optional[str] = None, path: Optional[str] = None):
# Parse the config from file
try:
log.info("Inspecting config file '%s'.", path)
with codecs.open(path, "r", "utf8") as config_file:
with open(path, "r", encoding="utf8") as config_file:
Config.parser.read_file(config_file)
except IOError as error:
log.debug(error)
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
'redmine': ['feedparser'],
'nitrate': ['nitrate'],
'rt': ['gssapi'],
'tests': ['pytest', 'pytest-xdist', 'pytest-cov', 'python-coveralls', 'pre-commit'],
'tests': ['pytest', 'pytest-xdist', 'pytest-cov', 'python-coveralls', 'pre-commit',
'setuptools'],
'mypy': ['types-setuptools', 'types-python-dateutil', 'lxml',
'types-requests', 'types-urllib3', 'types-httplib2'],
}
Expand Down Expand Up @@ -75,6 +76,7 @@
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: 3.14',
'Topic :: Office/Business',
'Topic :: Utilities',
],
Expand Down