-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: apply updated style configs from template (#141)
* add flake8 config from template * add pre-commit settings from template * apply flake8/black/isort * re-add linting/formatting check CI action * update readme dev instructions
- Loading branch information
1 parent
c4db93b
commit a35cf54
Showing
19 changed files
with
159 additions
and
114 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,13 @@ | ||
[flake8] | ||
ignore = E129,E133,E203,E221,E241,E251,E303,E266,H106,H904,W291 | ||
max-line-length = 100 | ||
max-complexity = 15 | ||
hang-closing = true | ||
exclude = | ||
.eggs | ||
.tox | ||
build | ||
dist | ||
docs/conf.py | ||
tests/* | ||
**/_data/migrations/* |
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,23 @@ | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: flake8 | ||
name: flake8 | ||
entry: flake8 | ||
language: system | ||
types: [python] | ||
- id: pyright | ||
name: pyright | ||
entry: pyright | ||
language: system | ||
types: [python] | ||
- id: isort | ||
name: isort | ||
entry: isort | ||
language: system | ||
types: [python] | ||
- id: black | ||
name: black | ||
entry: black | ||
language: system | ||
types: [python] |
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
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,3 @@ | ||
import logging | ||
|
||
|
||
class DuplicateFilter: | ||
""" | ||
Filters away duplicate log messages. | ||
|
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,20 +1,13 @@ | ||
"""emits a warning when imported under Python < 3.6 | ||
This module may be used by other biocommons packages | ||
""" | ||
"""emits a warning when imported under Python < 3.9""" | ||
|
||
import logging | ||
import sys | ||
|
||
__all__ = [] | ||
|
||
version_warning = ( | ||
"biocommons packages are tested and supported only on Python >= 3.6" | ||
" (https://github.com/biocommons/org/wiki/Migrating-to-Python-3.6)" | ||
) | ||
version_warning = "This package is tested and supported only on Python >= 3.9." | ||
|
||
_logger = logging.getLogger(__package__) | ||
|
||
if sys.version_info < (3, 6): | ||
if sys.version_info < (3, 9): | ||
_logger.warning(version_warning) |
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
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 +1 @@ | ||
from .fastadir import FastaDir | ||
from .fastadir import FastaDir # noqa: F401 |
Oops, something went wrong.