-
Notifications
You must be signed in to change notification settings - Fork 10
Replace black, flake8 and isort with ruff #3773
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
Changes from 31 commits
e9217ae
40451f4
c4c4270
5b55793
d40780e
57d5aa1
152aa1f
039f8f6
1a9141d
29d6a30
f4acbbf
c46420b
06461fb
83fbeec
da93ec5
b10bebd
87a9956
e873081
d1710d6
b0ce2fa
1ce9fda
c850e2d
fc66616
6f84683
b16a732
9315469
839f1ef
45673f5
c41220b
58e9b18
f44f7b5
950b225
36a743c
8713e06
b484aca
f291b14
7255990
8bca3b1
d4c97fc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # style(benefit): apply ruff format | ||
| 5b557933b1a275d60f9ad8a449a93fa7ca37e9fe | ||
| # style(benefit): break long strings with black and reformat with ruff | ||
| 57d5aa102229bdefd4ca845f08afc40f5b57e1c6 | ||
| # style(benefit): reflow comments | ||
| 152aa1f10be35e93314edf2ed200f384d400e291 | ||
| # style(benefit): add noqa to all E501 | ||
| 039f8f60d9e1ada9c0e6fd525ba33abde42565b7 | ||
| # style(benefit): add noqa to all T201 | ||
| 1a9141dff51f0fd3e35a4477bfa3510b69672c31 | ||
|
|
||
| # style(kesaseteli): apply ruff format | ||
| 83fbeeccd762ad1db105d82f030617c70504e740 | ||
| # style(kesaseteli): split long strings with black | ||
| 87a9956457afce87acb910ff07cf6313efbd3735 | ||
| # style(kesaseteli): split long comments | ||
| e8730817bd9aa5f97cbf7b2823f9563526520118 | ||
| # style(kesaseteli): apply docformatter | ||
| d1710d68062def0a1c43be362d5948e7ea088249 | ||
|
|
||
| # style(shared): apply ruff format | ||
| c850e2d19f40cabbe43f8cf331e7bf642e3099f6 | ||
| # style(shared): split long strings with black | ||
| 6f84683833b9fab8d4e586f88a15a40012aa7fee | ||
| # style(shared): split long comments | ||
| b16a7329fc75c71353e0cfa5701a39047bd85ddd | ||
| # style(shared): apply docformatter | ||
| 931546951c1adb4c5d3a262c190bd332ae58604f |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,73 +1,32 @@ | ||||||
| fail_fast: true | ||||||
|
|
||||||
| # Keep tool versions in sync with the versions in requirements-dev.txt | ||||||
| default_language_version: | ||||||
| python: python3 | ||||||
|
|
||||||
| exclude: ^.*\b(migrations)\b.*$ | ||||||
| default_stages: [commit, manual] | ||||||
|
|
||||||
| python: python3 | ||||||
| default_install_hook_types: [pre-commit, commit-msg] | ||||||
| default_stages: [pre-commit, manual] | ||||||
| repos: | ||||||
| - repo: https://github.com/psf/black | ||||||
| rev: 23.1.0 | ||||||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||||||
| rev: v6.0.0 | ||||||
| hooks: | ||||||
| - id: black | ||||||
| name: (BF) black | ||||||
| files: ^backend/benefit | ||||||
| - id: black | ||||||
| name: (KS) black | ||||||
| files: ^backend/kesaseteli | ||||||
| - id: black | ||||||
| name: (Shared) black | ||||||
| files: ^backend/shared | ||||||
| - repo: https://github.com/pycqa/isort | ||||||
| rev: 5.12.0 | ||||||
| - id: trailing-whitespace | ||||||
| - id: end-of-file-fixer | ||||||
| - id: check-yaml | ||||||
| - id: check-toml | ||||||
| - id: check-added-large-files | ||||||
| - repo: https://github.com/astral-sh/ruff-pre-commit | ||||||
| rev: v0.13.1 | ||||||
| hooks: | ||||||
| - id: isort | ||||||
| name: (BF) isort | ||||||
| args: [--settings-file, backend/benefit/setup.cfg] | ||||||
| files: ^backend/benefit | ||||||
| - id: isort | ||||||
| name: (KS) isort | ||||||
| args: [--settings-file, backend/kesaseteli/setup.cfg] | ||||||
| files: ^backend/kesaseteli | ||||||
| - id: isort | ||||||
| name: (Shared) isort | ||||||
| args: [--settings-file, backend/shared/setup.cfg] | ||||||
| files: ^backend/shared | ||||||
| - repo: https://github.com/pycqa/flake8 | ||||||
| rev: 6.0.0 | ||||||
| # Run the linter. | ||||||
| - id: ruff | ||||||
|
||||||
| - id: ruff | |
| - id: ruff-check |
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.
fixed in 950b225
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.
This "frontend lerna linter" is removed by accident ?
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.
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.
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.
fixed in 8713e06