-
Notifications
You must be signed in to change notification settings - Fork 716
add flake8 pre-commit #1689
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
Merged
Merged
add flake8 pre-commit #1689
Changes from 82 commits
Commits
Show all changes
87 commits
Select commit
Hold shift + click to select a range
40dc2c3
add flake8 pre-commit
Zethson 55737d9
fix pre-commit
Zethson f653e5a
add E402 to flake8 ignore
Zethson daf03c9
revert neighbors
Zethson 9a53065
Merge branch 'master' into feature/flake8
Zethson 2b79a88
fix flake8
Zethson 617168f
address review
Zethson ae43e3d
fix comment character in .flake8
Zethson 7db4e60
fix test
Zethson 48f0648
black
Zethson e742c66
review round 2
Zethson a5b1290
review round 3
Zethson 718a06c
readded double comments
Zethson 2a0a19d
Ignoring E262 & reverted comment
Zethson ebb2b01
using self for obs_tidy
Zethson d2bb2a9
Restore setup.py
flying-sheep ecc47a2
rm call of black test (#1690)
Koncopd f338863
Fix print_versions for python<3.8 (#1691)
ivirshup ce68cd1
add codecov so we can have a badge to point to (#1693)
ivirshup b5cc4b6
Attempt server-side search (#1672)
ivirshup 8b0d8f0
Fix paga_path (#1047)
flying-sheep 24d1b2e
Switch to flit
flying-sheep 364f320
add setup.py while leaving it ignored
flying-sheep 8f4f87e
Update install instructions
flying-sheep d4f7d4c
Circumvent new pip check (see pypa/pip#9628)
flying-sheep 3db4814
Go back to regular pip (#1702)
flying-sheep 6a97d73
codecov comment (#1704)
ivirshup 47af631
Use joblib for parallelism in regress_out (#1695)
ivirshup 6d36c6b
Add sparsificiation step before sparse-dependent Scrublet calls (#1707)
pinin4fjords c7bd6dc
Fix version on Travis (#1713)
flying-sheep 4eb64c2
`sc.metrics` module (add confusion matrix & Geary's C methods) (#915)
ivirshup c11c486
Fix clipped images in docs (#1717)
ivirshup f637c08
Cleanup normalize_total (#1667)
ivirshup 1e814cb
deprecate scvi (#1703)
mjayasur 056d183
updated ecosystem.rst to add triku (#1722)
alexmascension ade2975
Minor addition to contributing docs (#1726)
ivirshup 5f7f01f
Preserve category order when groupby is a list (#1735)
gokceneraslan b90e730
Asymmetrical diverging colormaps and vcenter (#1551)
gokceneraslan 8fe2897
add flake8 pre-commit
Zethson 5a144a3
add E402 to flake8 ignore
Zethson 55aee90
revert neighbors
Zethson fc9d2b6
address review
Zethson 893a034
black
Zethson 53948bd
using self for obs_tidy
Zethson 95958ff
rebased
Zethson 99e1218
rebasing
Zethson e030ab1
rebasing
Zethson 38e5624
rebasing
Zethson 9bd1f0f
Merge branch 'master' into feature/flake8
Zethson 7529cd3
add flake8 to dev docs
Zethson c7b9ee4
add autopep8 to pre-commits
Zethson ad38870
add flake8 ignore docs
Zethson c968244
add exception todos
Zethson 83e31cf
add ignore directories
Zethson f8b6b70
reinstated lambdas
Zethson 9e6722a
fix tests
Zethson 207f650
fix tests
Zethson 7fa610e
fix tests
Zethson 976d825
fix tests
Zethson e3d916c
fix tests
Zethson 5ca8527
Add E741 to allowed flake8 violations.
Zethson c8b7273
Add F811 flake8 ignore for tests
Zethson 9abc967
Fix mask comparison
Zethson 3a83228
Fix mask comparison
Zethson e2a4ce7
fix flake8 config file
Zethson 0c69d81
readded autopep8
Zethson d89105f
import Literal
Zethson 5cdfa9d
revert literal import
Zethson da412fc
fix scatterplot pca import
Zethson 220ac15
false comparison & unused vars
Zethson f373a70
Add cleaner level determination
Zethson 5adcfae
Fix comment formatting
Zethson ce2fb44
Add smoother dev documentation
Zethson 8d7e6e4
fix flake8
Zethson 64f6d7a
Readd long comment
Zethson 32dcf96
Assuming X as array like
Zethson 07cab3d
fix flake8
Zethson 699aaac
fix flake8 config
Zethson 79619ce
reverted rank_genes
Zethson 99a8f2e
fix disp_mean_bin formatting
Zethson abe0846
fix formatting
Zethson 16a0394
add final todos
Zethson 46f4ca7
boolean checks with is
Zethson ad418d8
_dpt formatting
Zethson 10e5d76
literal fixes
Zethson 9b1da8c
links to leafs
Zethson c372f0b
revert paga variable naming
ivirshup File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,37 @@ | ||
| # Can't yet be moved to the pyproject.toml due to https://gitlab.com/pycqa/flake8/-/issues/428#note_251982786 | ||
| [flake8] | ||
| max-line-length = 88 | ||
Zethson marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ignore = # module imported but unused -> required for Scanpys API | ||
| F401, | ||
| # line break before a binary operator -> black does not adhere to PEP8 | ||
| W503, | ||
| # line break occured after a binary operator -> black does not adhere to PEP8 | ||
| W504, | ||
| # line too long -> we accept long comment lines; black gets rid of long code lines | ||
| E501, | ||
| # whitespace before : -> black does not adhere to PEP8 | ||
| E203, | ||
| # missing whitespace after ,', ';', or ':' -> black does not adhere to PEP8 | ||
| E231, | ||
| # module level import not at top of file -> required to circumvent circular imports for Scanpys API | ||
| E402, | ||
| # continuation line over-indented for hanging indent -> black does not adhere to PEP8 | ||
| E126, | ||
| # E266 too many leading '#' for block comment -> Scanpy allows them for comments into sections | ||
| E262, | ||
| # inline comment should start with '# ' -> Scanpy allows them for specific explanations | ||
| E266, | ||
| # Do not assign a lambda expression, use a def -> Scanpy allows lambda expression assignments, | ||
| E731, | ||
| # allow I, O, l as variable names -> I is the identity matrix, i, j, k, l is reasonable indexing notation | ||
| E741 | ||
| per-file-ignores = | ||
| # F811 Redefinition of unused name from line, does not play nice with pytest fixtures | ||
| tests/test*.py: F811 | ||
| exclude = | ||
| .git, | ||
| __pycache__, | ||
| build, | ||
| docs/_build, | ||
| dist, | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.