-
Notifications
You must be signed in to change notification settings - Fork 247
misc: Ruff #2771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
misc: Ruff #2771
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
8d1a5f5
ci: Add Ruff linting
JDBetteridge dc370e4
ci: Add actionlint and hadolint for good measure
JDBetteridge 1783147
ci: Give codelint a name
JDBetteridge b23eeac
misc: Replace ruff I rules with more specific isort rules
JDBetteridge 089067e
misc: Add support for command line spellchequing with typo
JDBetteridge 42b7275
misc: Experiment
JDBetteridge ef9440e
misc: Deliberately add a file with a typo
JDBetteridge bed65d7
ci: Let's break everything by adding typo annotations
JDBetteridge cad17c1
scripts: Fix gha helper script
JDBetteridge 4f4b98d
scripts: Return non-zero error code, unless stdin is empty
JDBetteridge 87657f4
misc: Typos (ironically)
JDBetteridge e4914ca
misc: Remove ./ prefix from path
JDBetteridge 7d6f48e
misc: Prevent isort from sorting __init__.py
JDBetteridge a1ea434
misc: Change overly strict isort rule
JDBetteridge e200b51
ci: Shutup CodeQL
JDBetteridge da4d644
misc: Add a configuration for running pre-commit hooks
JDBetteridge 941a50f
lint: Remove all the trailing whitespace
JDBetteridge 56aa107
lint: Fix ends of files
JDBetteridge 2b4d8c3
lint: First pass with ruff --fix
JDBetteridge 5674a30
lint: Re-sort all imports with new isort rules
JDBetteridge 8e0ccb9
misc: Update Hadolint rules and clean dockerfiles
JDBetteridge e2740eb
misc: Lint action files
JDBetteridge 143c493
misc: Fix typos in Devito
JDBetteridge 94be5e7
misc: Fix typos in examples
JDBetteridge 611eba6
misc: Fix typos in tests
JDBetteridge f779176
misc: Kick CI
JDBetteridge fab89c8
misc: Manual linting for Devito
JDBetteridge 5306fb9
misc: Automated linting fixes in examples, tests, scripts
JDBetteridge 0ab3cb1
misc: Manually lint examples, tests, scripts, etc
JDBetteridge a7e2984
misc: Update precommit to include flake8
JDBetteridge e5e4557
misc: Various fixes
JDBetteridge 50719ac
ci: Change linting order to run ruff before flake8
JDBetteridge 757e597
misc: Update contributing guidelines to include pre-commit
JDBetteridge 891c9ec
Revert "misc: Deliberately add a file with a typo"
JDBetteridge a7a2ad0
misc: Fix helper script
JDBetteridge 528a9a6
misc: Remove double import of ctypes in allocators
JDBetteridge 4b30ce2
misc: Isolated fixes that only break things in PRO
JDBetteridge 4f50954
misc: Apply review suggestions
JDBetteridge 1eced04
misc: Add steps for automatically fixing errors to contributing and p…
JDBetteridge 538e2d3
misc: Change .yml -> .yaml for consistency
JDBetteridge deeb1c4
misc: Missed some ymls
JDBetteridge 371a13c
misc: Fix Eds suggestion
JDBetteridge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 +1 @@ | ||
| gAAAAABeDg5ZyNUhS3dc25RQZvpvHGAkmK6zQU8i3YRb9yUTC4MCQ0nkl215UQh0kNYoRcxaeJ7ecRYUjBamraRCVaaWvNal8DV9Ba9abHVZVA3T1rv7ptbcAmMgUK6e4LMc7xGB5w2GBTEjLSc9oGOhAiuFD-OPU6WVwEskiRD4D0SAmuRuI_8fTdpuV10plvGJNXM48TrDWabBnp2F2x-6GB0jqtuq6Z6yXIJ-cmgWRXzVAEj9NjYgKD3xeB4-8Mv9O1RMhazlRMQX5NFvcdNYPhdxIr0olFsoXhcavOmpsMNljLfl1MVnLtCp2QHzAjjIMKGtmBDYILUvKXdknmHi3hGcz_tTLCfSk976Qycf5pQwhlxNsoMfr4p3m3EvL7rXfwZCcctwiIZFzZn7SayMV1IMYUEAWR6JwbaUU93AHw_VrGM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U3GSuv2Ms577VxoB65z5Sm_LnGeX6ZEWUYhLzj0FKFaE2dTiXR01NYVSymVbTOHpYs4fLEmAjk--O6mwJW62SIVkgXlT13u6pncv97TIxLe8549jkOA4maFcVGmP2YPLgQ_Lx_EMzfa8lvJnOaVSPi020mV8Eli8AWbMoNENK_5pMPhWPWEgZNoPeeQaYQcP5VAKPR7WzocXgf8E5NELlTefe8mwxyuPumGn0u-vYUAKpMRfMEZMawSqnLf8Y2Ujyf488YSS9emX6laOl-oyFGMlv4cRLZF82a2akb2F0sO9-GmLMCv6Rqi6ySjsfpD14N162AibMG2Xl-8j2bDUqFlGAWW6_vwwZ_crZbHq1u6Z3fzr9iTr2cH_2BiN4lbJzw3yZLV7-RP9cDq5kTCzggFXRIxW7w0Q8mgyQjskeKxHbpXKSn1lWoUMX2wtZQl9OYisOVBeF-xeKi2YM8C1JRNRFE8nvLddAaqBgWVUQza5vRJOLqOD-PbIjWv60ifbHT90RwuHK8alvkNoc46eIZhSA6tYL5SmJtJUEBnqUxwb1EjyhlphD1q8h_WL-UXHtjE4uGQzHHFpXK3VPdH9qXF5zkmtMA87CiuRc8Jo-VDMCgKq208-zSj_8y-oTkDGb71bsszulB-GaG3Rn5L1fqvWMeGgwbksEyvwrgej8dhomyNg1YnzoyRXtdX4LyVOPGvx7JlBBE85vLQ697SgXD3SkRhr7ceZQHeWV8Cgq1Tvbnz88JK48fDBgGPnMP6lydp2hxKX_dW19iPycDEkmDALh-2U0_ZpiGPqA48E8cAf3HOYCpuzzdkzhvu-DOQU1WqbcUiPQeeWo1tS-1_HAXT18yRjMJZTQUJivVBq03meNQc-ZWFAcpxAtsNaS5fDLiNF51tatJA-N8y_WuiNUHlpxMgjPWGoR8Q== |
This file contains hidden or 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,5 @@ | ||
| self-hosted-runner: | ||
| labels: | ||
| - asv | ||
| - amdgpu | ||
| - nvidiagpu |
File renamed without changes.
File renamed without changes.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,94 @@ | ||
| name: Lint | ||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| on: | ||
| # Trigger the workflow on push or pull request, | ||
| # but only for the main branch | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| codelint: | ||
| name: "Lint the codebase" | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: Set up Python 3.10 | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: "3.10" | ||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install flake8-pyproject isort ruff | ||
|
|
||
| - name: Lint the Python imports with isort | ||
| run: | | ||
| isort --check-only . | ||
|
|
||
| - name: Lint codebase with ruff | ||
| run: | | ||
| ruff check --preview --output-format github | ||
|
|
||
| - name: Lint codebase with flake8 | ||
| run: | | ||
| flake8 --builtins=ArgumentError . | ||
|
|
||
| spellcheck: | ||
| name: "Spellcheck everything" | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: Set up Python 3.10 | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: "3.10" | ||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install typos | ||
|
|
||
| - name: Spellcheck the codebase with typos | ||
| run: | | ||
| typos --format json | python scripts/typos_json_to_gha.py | ||
|
|
||
| actionlint: | ||
| name: "Lint Github actions YAML files" | ||
| # There's a way to add error formatting so GH actions adds messages to code, | ||
| # but I can't work out the right number of quotes to get it to work | ||
| # https://github.com/rhysd/actionlint/blob/main/docs/usage.md | ||
| # #example-error-annotation-on-github-actions | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: Check workflow files | ||
| uses: docker://rhysd/actionlint:latest | ||
| with: | ||
| args: -color | ||
|
|
||
| dockerlint: | ||
| name: "Lint dockerfiles" | ||
| runs-on: ubuntu-latest | ||
| container: | ||
| image: hadolint/hadolint:latest-alpine | ||
| env: | ||
| HADOLINT_IGNORE: "DL3003,DL3004,DL3005,DL3007,DL3008,DL3009,DL3013,DL3015,DL3042,DL3059,SC2103,SC2046,SC2086" | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: Lint dockerfiles inside hadolint container | ||
| run: | | ||
| for DOCKERFILE in docker/Dockerfile.*; \ | ||
| do \ | ||
| echo " Linting $DOCKERFILE"; \ | ||
| hadolint "$DOCKERFILE" \ | ||
| || exit 1; \ | ||
| done |
File renamed without changes.
This file contains hidden or 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 hidden or 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
File renamed without changes.
File renamed without changes.
This file contains hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: this file is a
.yamlwhilst all the others are.ymlThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very nitpicky, but I'm going to be pedantic!
The correct extension is
.yamlas per the docsI will update everything to use
.yamlsincepre-commitis as pedantic as I am (and does not use the.pre-commit-config.ymlfile unless you pass it explicitly at setup time)