Skip to content

Commit cfa19d4

Browse files
committed
Run isort
1 parent 3df90b7 commit cfa19d4

File tree

107 files changed

+250
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+250
-11
lines changed

.coveragerc

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

.flake8

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,31 @@
11
[flake8]
22
max-line-length = 88
3-
ignore = E501, E203, W503
3+
ignore =
4+
# E501: Line too long
5+
E501,
6+
# E203: Whitespace before ':'
7+
E203,
8+
#W503: Line break occurred before a binary operator
9+
W503
410
per-file-ignores =
11+
# F401: Module imported but unused
512
__init__.py:F401
13+
# F811: Redefinition of unused name from line n
614
pendulum/tz/timezone.py:F811
15+
min_python_version = 3.7.0
16+
ban-relative-imports = true
17+
# flake8-use-fstring: https://github.com/MichaelKim0407/flake8-use-fstring#--percent-greedy-and---format-greedy
18+
format-greedy = 1
19+
inline-quotes = double
20+
enable-extensions = TC, TC1
21+
type-checking-exempt-modules = typing, typing-extensions
22+
eradicate-whitelist-extend = ^-.*;
23+
extend-ignore =
24+
# SIM106: Handle error-cases first
25+
SIM106,
26+
extend-exclude =
27+
# External to the project's coding standards:
28+
docs/*,
729
exclude =
830
.git
931
__pycache__

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,15 @@ repos:
5252
rev: v2.37.3
5353
hooks:
5454
- id: pyupgrade
55+
exclude: ^build\.py$
56+
args:
57+
- --py37-plus
5558

5659
- repo: https://github.com/pre-commit/mirrors-mypy
5760
rev: v0.971
5861
hooks:
5962
- id: mypy
6063
pass_filenames: false
64+
exclude: ^build\.py$
6165
additional_dependencies:
6266
- pytest>=7.1.2

clock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env python
22

3+
from __future__ import annotations
4+
35
import glob
46
import json
57
import os

pendulum/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import datetime as _datetime
24

35
from typing import Optional

pendulum/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.1.1"
1+
__version__ = "3.0.0a"

pendulum/_extensions/helpers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import datetime
24
import math
35
import typing

pendulum/constants.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# The day constants
2+
from __future__ import annotations
3+
4+
25
SUNDAY = 0
36
MONDAY = 1
47
TUESDAY = 2

pendulum/date.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import calendar
24
import math
35

pendulum/datetime.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import calendar
24
import datetime
35

0 commit comments

Comments
 (0)