-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore/sty: Replace black+flake8 with ruff, add pre-commit (#904)
* sty: Disable black, configure ruff * sty: ruff format [ignore-rev] Follow-up with ruff check --select ISC001 --fix * sty: ruff check --fix [ignore-rev] * rf: Remove unused sphinxext modules * sty: ruff check --fix --unsafe-fixes, reviewed and curated Follow up with ruff format and ruff check --select ISC001 --fix * sty: Manual fixes for remaining checks * Add pre-commit configuration * sty: Apply pre-commit hooks * chore: Remove flake8 config * chore(pre-commit): Improve names for ruff hooks * chore: Move codespell config to pyproject.toml * ci: Run tox checks * ci: Rename workflow to tox.yml
- Loading branch information
Showing
100 changed files
with
4,708 additions
and
6,871 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
exclude: ".*/data/.*" | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
exclude: 'examples' | ||
- id: end-of-file-fixer | ||
exclude: 'examples|docs/_static/.*\.(css|js)' | ||
- id: check-yaml | ||
- id: check-json | ||
- id: check-toml | ||
- id: check-added-large-files | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.7.4 | ||
hooks: | ||
- name: ruff check --fix | ||
id: ruff | ||
args: [ --fix ] | ||
- name: ruff format | ||
id: ruff-format | ||
- name: fix implicit string concatenation | ||
id: ruff | ||
args: [ --select, ISC001, --fix ] |
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
Oops, something went wrong.