-
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 #142 from unicef/feature/ruffing
Switch to Ruff
- Loading branch information
Showing
117 changed files
with
1,032 additions
and
1,377 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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: 'App CodeQL Config' | ||
|
||
paths-ignore: | ||
- '**/tests/**' | ||
- '**/tests/**' |
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
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 |
---|---|---|
@@ -1,30 +1,31 @@ | ||
repos: | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.13.2 | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v5.0.0 | ||
hooks: | ||
- id: isort | ||
stages: [pre-commit] | ||
- repo: https://github.com/ambv/black | ||
rev: 24.10.0 | ||
hooks: | ||
- id: black | ||
args: [--config=pyproject.toml] | ||
exclude: "migrations|snapshots" | ||
stages: [pre-commit] | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 7.1.1 | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-merge-conflict | ||
- id: check-toml | ||
- id: check-yaml | ||
args: [--unsafe] | ||
- id: check-added-large-files | ||
args: ["--maxkb=2000"] | ||
- repo: https://github.com/pycqa/isort | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
args: [--config=.flake8] | ||
|
||
additional_dependencies: [flake8-bugbear==22.9.23] | ||
stages: [ pre-commit ] | ||
- id: isort | ||
- repo: https://github.com/PyCQA/bandit | ||
rev: '1.7.10' # Update me! | ||
rev: '1.8.3' | ||
hooks: | ||
- id: bandit | ||
args: ["-c", "bandit.yaml"] | ||
- repo: https://github.com/twisted/towncrier | ||
rev: 24.8.0 | ||
hooks: | ||
- id: towncrier-check | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.9.7 | ||
hooks: | ||
- id: ruff | ||
alias: autoformat | ||
args: [--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
Oops, something went wrong.