Skip to content

Commit

Permalink
Set up isort in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Dec 8, 2020
1 parent 565bf91 commit 8a8097f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Expand Up @@ -74,6 +74,7 @@ jobs:
matrix:
toxenv:
- flake8
- isort

steps:
- name: Git clone
Expand Down
8 changes: 4 additions & 4 deletions objgraph.py
Expand Up @@ -30,15 +30,15 @@
import codecs
import collections
import gc
import re
import inspect
import types
import itertools
import operator
import os
import re
import subprocess
import tempfile
import sys
import itertools
import tempfile
import types

try:
# Python 2.x compatibility
Expand Down
5 changes: 5 additions & 0 deletions tox.ini
Expand Up @@ -35,3 +35,8 @@ commands = {[testenv:coverage]commands}
deps = flake8
skip_install = true
commands = flake8 objgraph.py setup.py tests.py

[testenv:isort]
deps = isort
skip_install = true
commands = isort {posargs: -c --diff objgraph.py setup.py tests.py}

0 comments on commit 8a8097f

Please sign in to comment.