Skip to content
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

&yarnabrina [MNT] switch to ruff as linting tool #6676

Merged
merged 33 commits into from
Jul 11, 2024
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
5fd6dae
updated pyupgrade configuration
yarnabrina Jun 17, 2024
9abb045
run pre-commit with updated configuration
yarnabrina Jun 17, 2024
3b4b619
remove use of `abc.ABC`
yarnabrina Jun 17, 2024
cc83c5d
pre-commit autoupdate
yarnabrina Jun 17, 2024
03ce954
pre-commit run --all-files --hook-stage manual --verbose
yarnabrina Jun 17, 2024
71d24a0
remove deprecated hook
yarnabrina Jun 17, 2024
072a400
initial ruff configuration
fnhirwa Jun 27, 2024
9549d26
update rules
fnhirwa Jun 27, 2024
228bb6b
ignore some rules
fnhirwa Jun 27, 2024
84dae97
update pydocstyle rules
fnhirwa Jul 1, 2024
e7a092a
exclude examples
fnhirwa Jul 1, 2024
0655b3b
examples excluded from nbqa
fnhirwa Jul 1, 2024
ca843af
ignore password rules"
fnhirwa Jul 1, 2024
12597f8
fix string formating issues
fnhirwa Jul 2, 2024
8afa431
black formatting
fnhirwa Jul 2, 2024
fbe8f82
running the linter against all files
fnhirwa Jul 2, 2024
eae2ef5
Merge remote-tracking branch 'upstream/main' into ruff
fnhirwa Jul 2, 2024
026620c
update ruff version
fnhirwa Jul 3, 2024
8b1a2ce
Merge branch 'pr-6331' into ruff
fnhirwa Jul 3, 2024
649fd41
run against all files
fnhirwa Jul 3, 2024
0a0fb50
Merge remote-tracking branch 'upstream/main' into ruff
fnhirwa Jul 3, 2024
8c20b56
fix failing ruff run
fnhirwa Jul 3, 2024
fef5b38
Merge remote-tracking branch 'upstream/main' into ruff
fnhirwa Jul 4, 2024
28a3361
Merge branch 'main' into pr/6676
fkiraly Jul 6, 2024
73264ff
initial drop for nbqa
fnhirwa Jul 8, 2024
137804f
run pre-commit on all files
fnhirwa Jul 8, 2024
5ee893b
Merge remote-tracking branch 'upstream/main' into ruff
fnhirwa Jul 8, 2024
19a4a17
use latest ruff version
fnhirwa Jul 8, 2024
628af1a
use ruff to format
fnhirwa Jul 8, 2024
9ca6b97
redefine rules for init
fnhirwa Jul 8, 2024
8a6a0c2
update rule for init
fnhirwa Jul 8, 2024
c12ba9d
update coding standard guide
fnhirwa Jul 9, 2024
3f0c400
add explicit exceptions for noqa
fnhirwa Jul 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
pre-commit autoupdate
  • Loading branch information
yarnabrina committed Jun 17, 2024
commit cc83c5ddaf21cdad6dd408a37ac0ec49898b3049
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-added-large-files
args:
Expand All @@ -19,7 +19,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.16.0
hooks:
- id: pyupgrade
args:
Expand All @@ -32,13 +32,13 @@ repos:
name: isort

- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.4.2
hooks:
- id: black
language_version: python3

- repo: https://github.com/pycqa/flake8
rev: 7.0.0
rev: 7.1.0
hooks:
- id: flake8
exclude: docs/conf.py
Expand All @@ -51,7 +51,7 @@ repos:
stages: [manual]

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.1
rev: 1.8.5
hooks:
- id: nbqa-black
args:
Expand All @@ -74,7 +74,7 @@ repos:
# We use the Python version instead of the original version which seems to require Docker
# https://github.com/koalaman/shellcheck-precommit
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.6
rev: v0.10.0.1
hooks:
- id: shellcheck
name: shellcheck