Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
feat: add flake8 to pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarcoatl committed Feb 9, 2021
1 parent 27ecd6e commit 67fca3a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .flake8
@@ -0,0 +1,3 @@
[flake8]
ignore = E211, E999, F401, W503
max-doc-length = 72
6 changes: 5 additions & 1 deletion .pre-commit-config.yaml
@@ -1,5 +1,9 @@
repos:
- repo: https://github.com/pycqa/isort
- repo: https://github.com/PyCQA/flake8
rev: 3.8.4
hooks:
- id: flake8
- repo: https://github.com/PyCQA/isort
rev: 5.7.0
hooks:
- id: isort
Expand Down
4 changes: 2 additions & 2 deletions src/system/date.py
Expand Up @@ -688,13 +688,13 @@ def toMillis(date):
date (datetime): The date object to convert.
Returns:
long: 8-byte integer representing the number of millisecond
int: 8-byte integer representing the number of millisecond
elapsed since January 1, 1970, 00:00:00 UTC (GMT).
"""
from time import mktime

millis = mktime(date.timetuple()) * 1000 + date.microsecond // 1000
return long(millis)
return int(millis)


def weeksBetween(date_1, date_2):
Expand Down

0 comments on commit 67fca3a

Please sign in to comment.