Skip to content

Commit

Permalink
Merge pull request #95 from ASFHyP3/ruff-ruff
Browse files Browse the repository at this point in the history
Proposed updates to Ruff action
  • Loading branch information
forrestfwilliams authored Nov 13, 2023
2 parents ccf78d1 + 52328fd commit e738f0e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/reusable-ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,5 @@ jobs:
- name: Ruff linting check
run: ruff check --output-format=github .

- name: Ruff imports check
run: ruff check --select I --output-format=github .

- name: Ruff format check
run: ruff format --diff .
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,28 @@ src = ["src", "tests"]
indent-style = "space"
quote-style = "single"
[tool.ruff.lint]
extend-select = [
"UP", # pyupgrade
"D", # pydocstyle
"ANN", # annotations
"PTH", # use-pathlib-pth
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
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)
Expand Down

0 comments on commit e738f0e

Please sign in to comment.