Skip to content

Commit 0b742ee

Browse files
committed
Add isort autoformatting using pre-commit
1 parent 90f0358 commit 0b742ee

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
run: pip install pre-commit
3030

3131
- name: "Run pre-commit checks"
32-
run: pre-commit run --all-files
32+
run: pre-commit run --hook-stage manual --all-files
3333

3434
build:
3535
runs-on: ubuntu-latest

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ repos:
1313
additional_dependencies:
1414
- "types-pytz"
1515
- "types-requests"
16+
17+
- repo: https://github.com/pycqa/isort
18+
rev: 5.6.4
19+
hooks:
20+
- id: isort
21+
args: [ "--profile", "black"]

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
"pytest-runner",
4141
"click",
4242
"sqlalchemy_utils",
43+
"pre-commit",
44+
"black",
45+
"isort",
4346
]
4447

4548
setup(
@@ -76,7 +79,7 @@
7679
"Programming Language :: Python :: Implementation :: PyPy",
7780
"Topic :: Database :: Front-Ends",
7881
],
79-
python_requires='>=3.7',
82+
python_requires=">=3.7",
8083
install_requires=["pytz", "requests"],
8184
extras_require={
8285
"all": all_require,

0 commit comments

Comments
 (0)