-
Notifications
You must be signed in to change notification settings - Fork 129
Ftrack: Moved module one hierarchy level higher #2792
Conversation
|
||
|
||
def factory(type): | ||
"""Returns an :class:`.ArrowFactory` for the specified :class:`Arrow <arrow.arrow.Arrow>` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (89 > 79 characters)
|
||
|
||
def now(tz=None): | ||
"""Calls the default :class:`ArrowFactory <arrow.factory.ArrowFactory>` ``now`` method.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (94 > 79 characters)
|
||
|
||
def utcnow(): | ||
"""Calls the default :class:`ArrowFactory <arrow.factory.ArrowFactory>` ``utcnow`` method.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (97 > 79 characters)
|
||
|
||
def get(*args, **kwargs): | ||
"""Calls the default :class:`ArrowFactory <arrow.factory.ArrowFactory>` ``get`` method.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (94 > 79 characters)
@@ -0,0 +1,54 @@ | |||
# -*- coding: utf-8 -*- | |||
""" | |||
Provides the default implementation of :class:`ArrowFactory <arrow.factory.ArrowFactory>` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (89 > 79 characters)
# Support for midnight at the end of day | ||
if hour == 24: | ||
if parts.get("minute", 0) != 0: | ||
raise ParserError("Midnight at the end of day must not contain minutes") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (88 > 79 characters)
# dddd YYYY => first day of week in specified year | ||
# dddd MM YYYY => first day of week in specified year and month | ||
# dddd MM => first day after epoch in specified month | ||
next_weekday_dt = next_weekday(datetime(year, month, day), day_of_week) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (83 > 79 characters)
dt = datetime.strptime(date_string, "%Y-%j") | ||
except ValueError: | ||
raise ParserError( | ||
"The provided day of year '{}' is invalid.".format(day_of_year) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (83 > 79 characters)
|
||
if month is not None: | ||
raise ParserError( | ||
"Month component is not allowed with the DDD and DDDD tokens." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (82 > 79 characters)
weekdate = parts.get("weekdate") | ||
|
||
if weekdate is not None: | ||
# we can use strptime (%G, %V, %u) in python 3.6 but these tokens aren't available before that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (106 > 79 characters)
Brief changes
Moved
ftrack
module fromdefault_modules
folder next to base modules.Changes
arrow
andpython-ftrack-api
are not git submoduleTesting notes: