-
Notifications
You must be signed in to change notification settings - Fork 32
Make code checks pass #72
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,6 @@ | ||
| [default] | ||
| extend-ignore-identifiers-re = [ | ||
| ".*Hsi", | ||
| "relevants", | ||
| "Comput", | ||
| ] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -161,11 +161,11 @@ | |
| "os.makedirs(\"notebooks/data\", exist_ok=True)\n", | ||
| "\n", | ||
| "with open(\"notebooks/data/small_qrels.json\", \"w\") as f:\n", | ||
| " master = f\"https://raw.githubusercontent.com/AmenRa/ranx/master/notebooks/data/small_qrels.json\"\n", | ||
| " master = \"https://raw.githubusercontent.com/AmenRa/ranx/master/notebooks/data/small_qrels.json\"\n", | ||
| " f.write(requests.get(master).text)\n", | ||
| "\n", | ||
| "with open(\"notebooks/data/small_qrels.trec\", \"w\") as f:\n", | ||
| " master = f\"https://raw.githubusercontent.com/AmenRa/ranx/master/notebooks/data/small_qrels.trec\"\n", | ||
| " master = \"https://raw.githubusercontent.com/AmenRa/ranx/master/notebooks/data/small_qrels.trec\"\n", | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok. |
||
| " f.write(requests.get(master).text)" | ||
| ] | ||
| }, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,13 @@ | ||
| [tool.ruff] | ||
| # E501 ignore long comment lines (black should take care of that) | ||
| # E712 ignore == False, needed for numba checks. | ||
| [tool.ruff.lint] | ||
| ignore = ["E501", "E712"] | ||
|
|
||
| [tool.black] | ||
| extend-exclude = ''' | ||
| \.md$|\.markdown$ | ||
| ''' | ||
|
|
||
| [tool.isort] | ||
| profile = "black" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,7 +45,7 @@ def isr(runs: List[Run], name: str = "isr") -> Run: | |
| Fl{\'{a}}vio Martins and | ||
| Jo{\~{a}}o Magalh{\~{a}}es}, | ||
| title = {Multimodal medical information retrieval with unsupervised rank fusion}, | ||
| journal = {Comput. Medical Imaging Graph.}, | ||
| journal = {Computerized Medical Imaging and Graphics}, | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok. |
||
| volume = {39}, | ||
| pages = {35--45}, | ||
| year = {2015}, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,7 +51,7 @@ def log_isr(runs: List[Run], name: str = "log_isr") -> Run: | |
| Fl{\'{a}}vio Martins and | ||
| Jo{\~{a}}o Magalh{\~{a}}es}, | ||
| title = {Multimodal medical information retrieval with unsupervised rank fusion}, | ||
| journal = {Comput. Medical Imaging Graph.}, | ||
| journal = {Computerized Medical Imaging and Graphics}, | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok. |
||
| volume = {39}, | ||
| pages = {35--45}, | ||
| year = {2015}, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,7 +51,7 @@ def logn_isr(runs: List[Run], sigma: float = 0.01, name: str = "logn_isr") -> Ru | |
| Fl{\'{a}}vio Martins and | ||
| Jo{\~{a}}o Magalh{\~{a}}es}, | ||
| title = {Multimodal medical information retrieval with unsupervised rank fusion}, | ||
| journal = {Comput. Medical Imaging Graph.}, | ||
| journal = {Computerized Medical Imaging and Graphics}, | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok. |
||
| volume = {39}, | ||
| pages = {35--45}, | ||
| year = {2015}, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok.