Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/check-formatting.yaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,24 @@ jobs:
name: Check Python formatting with ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5
- uses: actions/setup-python@v3
- uses: astral-sh/ruff-action@v3

check-formatting-with-snakefmt:
name: Check Snakemake formatting with snakefmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v7
- run: uv run snakefmt --check --compact-diff .

check-formatting-with-markdownlint-cli2:
name: Check Markdown formatting with pymarkdownlnt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v7
- run: uv run pymarkdownlnt scan .
13 changes: 11 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,14 @@ and if you can help get them to pass, that would be great!
You can contribute source code by forking this repository, creating a new branch, and then submitting a pull request
to our [GitHub repository](https://github.com/NCATSTranslator/Babel).

Code submitted for review should use [ruff](https://docs.astral.sh/ruff/) to fix any style issues before submission.
You can run ruff by running `uv run ruff check`, and you can use `uv run ruff check --fix` to automatically fix some issues.
We use three linters to check the style of submitted code in GitHub pull requests -- don't worry if this is difficult
to do at your end, as it is easy to fix in a pull request:
* [ruff](https://docs.astral.sh/ruff/) for Python code
* You can run this locally by running `uv run ruff check`.
* You can use `uv run ruff check --fix` to automatically fix some issues.
* [snakefmt](https://github.com/snakemake/snakefmt) for Snakemake files
* You can run this locally by running `uv run snakefmt --check --compact-diff .`.
* You can use `uv run snakefmt .` to automatically fix some issues.
* [pymarkdownlnt](https://pypi.org/project/pymarkdownlnt/) for Markdown files
* You can run this locally by running `uv run pymarkdownlint scan .`.
* You can use `uv run pymarkdownlint fix .` to automatically fix some issues.
51 changes: 0 additions & 51 deletions DEPLOYMENT.md

This file was deleted.

Loading
Loading