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
4 changes: 2 additions & 2 deletions dfdatetime/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Digital Forensics Date and Time (dfDateTime).

dfDateTime, or Digital Forensics date and time, provides date and time objects
to preserve accuracy and precision.
dfDateTime, or Digital Forensics date and time, provides date and time objects to
preserve accuracy and precision.
"""

# Imports for date time values factory.
Expand Down
8 changes: 4 additions & 4 deletions dfdatetime/dotnet_datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ def __init__(self):
class DotNetDateTime(interface.DateTimeValues):
""".NET DateTime ticks.

The .NET DateTime timestamp is a 64-bit signed integer that contains the date
and time as the number of 100 nanoseconds since 12:00 AM January 1, year 1
A.D. in the proleptic Gregorian Calendar.
The .NET DateTime timestamp is a 64-bit signed integer that contains the date and
time as the number of 100 nanoseconds since 12:00 AM January 1, year 1 A.D. in the
proleptic Gregorian Calendar.
"""

_EPOCH = DotNetDateTimeEpoch()
Expand Down Expand Up @@ -48,7 +48,7 @@ def __init__(self, precision=None, time_zone_offset=None, timestamp=None):

@property
def timestamp(self):
"""integer: .NET DateTime timestamp or None if not set."""
"""int: .NET DateTime timestamp or None if not set."""
return self._timestamp

def _GetNormalizedTimestamp(self):
Expand Down
4 changes: 2 additions & 2 deletions dfdatetime/precisions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class DateTimePrecisionHelper:

This is the super class of different date and time precision helpers.

Time precision helpers provide functionality for converting date and time
values between different precisions.
Time precision helpers provide functionality for converting date and time values
between different precisions.
"""

# pylint: disable=missing-raises-doc,redundant-returns-doc
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@ line-length = 88
target-version = ["py310"]
include = "\\.pyi?$"

[tool.docformatter]
black = true
non-cap = ["bytes:", "dfDateTime", "float:", "int:", "str:"]
non-strict = true

[tool.setuptools]
package-dir = {"dfdatetime" = "dfdatetime"}
20 changes: 18 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py3{10,11,12,13,14},black,coverage,docs,pylint,wheel
envlist = py3{10,11,12,13,14},black,coverage,docformatter,docs,pylint,wheel

[testenv]
allowlist_externals = ./run_tests.py
Expand Down Expand Up @@ -37,7 +37,23 @@ deps =
setuptools >= 65
commands =
black --version
black --check .
black .

[testenv:docformatter]
skipsdist = True
pip_pre = True
passenv =
CFLAGS
CPPFLAGS
LDFLAGS
setenv =
PYTHONPATH = {toxinidir}
deps =
docformatter
setuptools >= 65
commands =
docformatter --version
docformatter --in-place --recursive dfdatetime tests

[testenv:docs]
usedevelop = True
Expand Down
Loading