Skip to content

Commit

Permalink
Make isort use black profile to prevent conflicts (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaidhyani authored Feb 13, 2024
1 parent 015aa68 commit 737b0e1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ jobs:
- name: black
run: black --check .
- name: isort
run: isort --check .
run: isort --profile black --check .
- name: pytest
run: pytest
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ repos:
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
name: isort (python)
args: ["--profile", "black"]
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,11 @@
"source.organizeImports": "explicit"
},
"python.analysis.typeCheckingMode": "basic",

"isort.args": [
"--profile black"
],

"black-formatter.importStrategy": "fromEnvironment",

}

0 comments on commit 737b0e1

Please sign in to comment.