-
Notifications
You must be signed in to change notification settings - Fork 10
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 #554 from DeepRank/541_ruff_dbodor
ci: implement ruff
- Loading branch information
Showing
112 changed files
with
4,195 additions
and
3,974 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
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 |
---|---|---|
|
@@ -3,7 +3,6 @@ name: "Install Python and deeprank2" | |
description: "Installs Python, updates pip and installs deeprank2 together with its dependencies." | ||
|
||
inputs: | ||
|
||
python-version: | ||
required: false | ||
description: "The Python version to use. Specify major and minor version, e.g. '3.10'." | ||
|
@@ -15,14 +14,13 @@ inputs: | |
default: "test" | ||
|
||
runs: | ||
|
||
using: "composite" | ||
|
||
steps: | ||
- name: Cancel Previous Runs and Set up Python | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
access_token: ${{ github.token }} | ||
- uses: actions/checkout@v3 | ||
- name: Setup conda | ||
uses: s-weigand/setup-conda@v1 | ||
|
@@ -43,7 +41,7 @@ runs: | |
CMAKE_INSTALL_PREFIX: .local | ||
if: runner.os == 'Linux' | ||
run: | | ||
# Install dependencies not handled by setuptools | ||
# Install dependencies not handled by setuptools | ||
## DSSP | ||
sudo apt-get install -y dssp | ||
## MSMS | ||
|
@@ -59,7 +57,7 @@ runs: | |
CMAKE_INSTALL_PREFIX: .local | ||
if: runner.os == 'macOS' | ||
run: | | ||
# Install dependencies not handled by setuptools | ||
# Install dependencies not handled by setuptools | ||
## DSSP | ||
git clone https://github.com/PDB-REDO/libcifpp.git --recurse-submodules | ||
cd libcifpp | ||
|
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 |
---|---|---|
|
@@ -16,4 +16,4 @@ jobs: | |
- name: Check whether the citation metadata from CITATION.cff is valid | ||
uses: citation-file-format/[email protected] | ||
with: | ||
args: "--validate" | ||
args: "--validate" |
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
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 was deleted.
Oops, something went wrong.
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,15 +1,23 @@ | ||
{ | ||
"[python]": { | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": true | ||
}, | ||
"files.trimTrailingWhitespace": true, | ||
// Python | ||
"[python]": { | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": "explicit" | ||
}, | ||
"editor.defaultFormatter": "charliermarsh.ruff" | ||
}, | ||
"autoDocstring.docstringFormat": "google", | ||
|
||
"python.linting.prospectorEnabled": true, | ||
"notebook.lineNumbers": "on", | ||
// Notebooks | ||
"notebook.lineNumbers": "on", | ||
"notebook.formatOnSave.enabled": true, | ||
"notebook.codeActionsOnSave": { | ||
"notebook.source.fixAll": "explicit" | ||
}, | ||
"notebook.diff.ignoreMetadata": true, | ||
|
||
"[*.yml]": { | ||
"files.trimTrailingWhitespace": true, | ||
}, | ||
// Format all files on save | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
} |
Oops, something went wrong.