-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #154 from ufal/isort
Isort
- Loading branch information
Showing
5 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Black | ||
|
||
on: | ||
push: | ||
branches: [ main, release-1.0.0] | ||
pull_request: | ||
branches: [ main, release-1.0.0] | ||
|
||
jobs: | ||
|
||
check-black: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.11 | ||
- name: Install isort 5.13.2 - check setup.py if version matches | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install isort==5.13.2 | ||
- name: Isort check | ||
run: | | ||
isort --check --diff factgenie || echo "We know it fails ATM" | ||
isort --check --diff tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
[tool.black] | ||
line-length = 120 | ||
target-version = ['py39'] | ||
force-exclude = ''' | ||
/( | ||
\.git | ||
| \.github | ||
)/ | ||
''' | ||
|
||
[tool.isort] | ||
profile="black" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# conftest.py | ||
import pytest | ||
import shutil | ||
|
||
import pytest | ||
|
||
from factgenie import MAIN_CONFIG_PATH | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters