-
Notifications
You must be signed in to change notification settings - Fork 1
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 #210 from ASFHyP3/develop
Release v0.13.1
- Loading branch information
Showing
3 changed files
with
18 additions
and
9 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 |
---|---|---|
|
@@ -230,12 +230,22 @@ jobs: | |
uses: ASFHyP3/actions/.github/workflows/[email protected] | ||
``` | ||
|
||
to ensure the Python code is styled correctly. | ||
Make sure that `pyproject.toml` contains the appropriate Python version specifier | ||
(see the [ruff docs](https://docs.astral.sh/ruff/settings/#target-version)), e.g: | ||
|
||
```toml | ||
[project] | ||
requires-python = ">=3.13" | ||
``` | ||
|
||
To conform to ASFHyP3's Python style add the following to `pyproject.toml` | ||
(and update the `src =` line as needed, for import ordering): | ||
|
||
To conform to ASFHyP3's Python style add the following to your project's `pyproject.toml`: | ||
```toml | ||
[tool.ruff] | ||
line-length = 120 | ||
# The directories to consider when resolving first- vs. third-party imports. | ||
# See: https://docs.astral.sh/ruff/settings/#src | ||
src = ["src", "tests"] | ||
[tool.ruff.format] | ||
|
@@ -259,12 +269,6 @@ case-sensitive = true | |
lines-after-imports = 2 | ||
``` | ||
|
||
Ruff can automatically fix many linting errors and reformat code to match your Python style by running these commands: | ||
```shell | ||
ruff check --fix . | ||
ruff format . | ||
``` | ||
|
||
### [`reusable-git-object-name.yml`](./.github/workflows/reusable-git-object-name.yml) | ||
|
||
Outputs the human-readable git object name from [`git describe --dirty --tags --long --match "*[0-9]*"`](https://git-scm.com/docs/git-describe) | ||
|