-
-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Updated isort config and related CI job (#118)
* chore: Added separate isort config * chore: Updated flake8 config * ci: Updated CI isort job * docs: Updated makefile
- Loading branch information
Showing
5 changed files
with
12 additions
and
8 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[flake8] | ||
max-line-length = 120 | ||
ignore = E402, E265, F403, W503, W504, E731 | ||
exclude = .circleci, .git, venv*, docs, build | ||
exclude = .github, .git, venv*, docs, build | ||
per-file-ignores = **/__init__.py:F401 |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[settings] | ||
line_length = 120 | ||
src_paths = torchcam,tests | ||
skip_glob=**/__init__.py | ||
known_third_party=torch,torchvision |
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,17 +1,17 @@ | ||
# this target runs checks on all files | ||
quality: | ||
isort **/*.py -c -v | ||
isort . -c -v | ||
flake8 ./ | ||
mypy torchcam/ | ||
|
||
# this target runs checks on all files and potentially modifies some of them | ||
style: | ||
isort **/*.py | ||
isort . | ||
|
||
# Run tests for the library | ||
test: | ||
coverage run -m pytest tests/ | ||
|
||
# Check that docs can build | ||
docs: | ||
cd docs && bash build.sh | ||
cd docs && bash build.sh |
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,3 @@ | ||
[metadata] | ||
description-file = README.md | ||
license_file = LICENSE | ||
|
||
[isort] | ||
line_length = 120 |