-
Notifications
You must be signed in to change notification settings - Fork 33
Maintainability upgrades and fixes #399
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
Open
Will-Hellinger
wants to merge
18
commits into
ComputerScienceHouse:develop
Choose a base branch
from
Will-Hellinger:develop
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
bb9d0df
Initial docstrings and ruff formatting
Will-Hellinger 572236c
Migrate to ruff
Will-Hellinger b54b709
Add app formatting
Will-Hellinger 072b949
Auto-format code with ruff
github-actions[bot] 1bba206
Merge branch 'ComputerScienceHouse:develop' into develop
Will-Hellinger 91f4cec
Revert to precious docker image
Will-Hellinger ab44b1c
migrate to specific csh_ldap release
Will-Hellinger 87c49a8
Ruff updates:
Will-Hellinger d4ef4da
Full send 3.12
Will-Hellinger 2974b9a
Restore .devcontainer
Will-Hellinger 6aedd5b
Restore pylint
Will-Hellinger 1f388ca
Fix pylint?
Will-Hellinger f649c45
Revert to "Ruff updates:"
Will-Hellinger e1ba438
Migrate back to 3.9 fully
Will-Hellinger c386b05
Now pylint compatible
Will-Hellinger 75fa791
Auto-format code with ruff
github-actions[bot] 4ec5d0f
Add sonar support
Will-Hellinger c55cc28
I am stupid and named it projet and not project
Will-Hellinger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
|---|---|---|
| @@ -1 +1,9 @@ | ||
| node_modules/ | ||
| .github/ | ||
| .mypy_cache/ | ||
| .pytest_cache/ | ||
| __pycache__/ | ||
| *.pyc | ||
| .venv/ | ||
| .scannerwork/ | ||
| .ruff_cache/ |
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,33 @@ | ||
| name: Format App | ||
|
|
||
| on: | ||
| push: | ||
| branches: [master, develop] | ||
|
|
||
| jobs: | ||
| format: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.9' | ||
|
|
||
| - name: Install ruff | ||
| run: pip install ruff | ||
|
|
||
| - name: Run ruff format | ||
| run: ruff format packet | ||
|
|
||
| - name: Commit and push changes | ||
| run: | | ||
| git config --global user.name "github-actions[bot]" | ||
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
| git add . | ||
| git diff --cached --quiet || git commit -m "Auto-format code with ruff" | ||
| git push |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,12 @@ | ||
| const gulp = require('gulp'); | ||
| const exec = require('child_process').exec; | ||
|
|
||
| let pylintTask = (cb) => { | ||
| exec('pylint --load-plugins pylint_quotes packet/routes packet', function (err, stdout, stderr) { | ||
| let ruffTask = (cb) => { | ||
| exec('ruff check packet', function (err, stdout, stderr) { | ||
| console.log(stdout); | ||
| console.log(stderr); | ||
| cb(err); | ||
| }); | ||
| }; | ||
|
|
||
| gulp.task('pylint', pylintTask); | ||
| gulp.task('ruff', ruffTask); |
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.
Uh oh!
There was an error while loading. Please reload this page.