Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add isort to project #2564

Merged
merged 1 commit into from
Nov 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/isort.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: isort

on:
- push
- pull_request

jobs:
isort:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: isort/[email protected]
DimitriPapadopoulos marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 1 addition & 1 deletion codespell_lib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from ._codespell import main, _script_main # noqa
from ._codespell import _script_main, main # noqa
from ._version import __version__ # noqa
4 changes: 2 additions & 2 deletions codespell_lib/tests/test_basic.py
Original file line number Diff line number Diff line change
@@ -3,14 +3,14 @@
import os
import os.path as op
import re
from shutil import copyfile
import subprocess
import sys
from shutil import copyfile

import pytest

import codespell_lib as cs_
from codespell_lib._codespell import uri_regex_def, EX_USAGE, EX_OK, EX_DATAERR
from codespell_lib._codespell import EX_DATAERR, EX_OK, EX_USAGE, uri_regex_def


def test_constants():
5 changes: 2 additions & 3 deletions codespell_lib/tests/test_dictionary.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import glob
import os.path as op
import os
import os.path as op
import re
import warnings

import pytest

from codespell_lib._codespell import _builtin_dictionaries
from codespell_lib._codespell import supported_languages
from codespell_lib._codespell import _builtin_dictionaries, supported_languages

spellers = dict()