Conversation
Corrections and workarounds for following errors in some test codes,
tests.api.{dumps.*,load.{common,multi_load.*}} and tests.parsers.* by
ruff linter.
- COM812: https://docs.astral.sh/ruff/rules/missing-trailing-comma/
- D101: https://docs.astral.sh/ruff/rules/undocumented-public-class/
- PT011: https://docs.astral.sh/ruff/rules/pytest-raises-too-broad/
- RUF015:
https://docs.astral.sh/ruff/rules/unnecessary-iterable-allocation-for-first-element/
Corrections for following errors in some test codes, tests.api.load.single_load.* pointed by ruff linter. - ANN201: https://docs.astral.sh/ruff/rules/missing-return-type-undocumented-public-function/ - COM812: https://docs.astral.sh/ruff/rules/missing-trailing-comma/ - PT006: https://docs.astral.sh/ruff/rules/pytest-parametrize-names-wrong-type/ - PT011: https://docs.astral.sh/ruff/rules/pytest-raises-too-broad/ - Q001: https://docs.astral.sh/ruff/rules/bad-quotes-multiline-string/
fix or add workarouds for several ruff errors like the followings in setup.py. - ANN001: missing-type-function-argument - ANN202: missing-type-argsmissing-type-args - C408: unnecessary-collection-call - DTZ005: call-datetime-now-without-tzinfo - I001: unsorted-imports - N801: invalid-class-name - Q000: bad-quotes-inline-string
fix or add workarouds for several ruff errors like the followings in docs/conf.py. - A001: builtin-variable-shadowing - I001: unsorted-imports - Q000: bad-quotes-inline-string - UP025: unicode-kind-prefix
fix or add workarouds for several ruff errors like the followings in anyconfig.api.*. ANN003: missing-type-kwargs I001: unsorted-imports RUF022: unsorted-dunder-all TID252: relative-imports UP007: non-pep604-annotation-union UP045: non-pep604-annotation-optional
fix or add workarouds for several ruff errors like the followings in anyconfig.backend.*. ANN002: missing-type-args ANN003: missing-type-kwargs ANN401: any-type COM812: missing-trailing-comma FIX002: line-contains-todo FURB122: for-loop-writes I001: unsorted-imports RUF022: unsorted-dunder-all TID252: relative-imports UP007: non-pep604-annotation-union UP045: non-pep604-annotation-optional
fix or add workarouds for several ruff errors like the followings in anyconfig.cli.*. ANN401: any-type COM812: missing-trailing-comma FIX001: line-contains-fixme I001: unsorted-imports TD001: invalid-todo-tag TD002: missing-todo-author TD003: missing-todo-link TD004: missing-todo-colon TID252: relative-imports UP045: non-pep604-annotation-optional
fix or add workarouds for several ruff errors like the followings in anyconfig.common.*. ANN401: any-type COM812: missing-trailing-comma I001: unsorted-imports RUF022: unsorted-dunder-all UP045: non-pep604-annotation-optional
fix or add workarouds for several ruff errors like the followings in anyconfig.pa*.*. COM812: missing-trailing-comma FIX001: line-contains-fixme FURB167: regex-flag-alias I001: unsorted-imports RUF022: unsorted-dunder-all TD001: invalid-todo-tag TD002: missing-todo-author TD003: missing-todo-link TD005: missing-todo-description TID252: relative-imports UP045: non-pep604-annotation-optional
fix or add workarouds for several ruff errors like the followings in anyconfig.dicts. ANN003: missing-type-kwargs ANN401: any-type COM812: missing-trailing-comma I001: unsorted-imports UP045: non-pep604-annotation-optional
fix or add workarouds for several ruff errors like the followings in anyconfig.ioinfo.utils. ANN401: any-type COM812: missing-trailing-comma I001: unsorted-imports RUF022: unsorted-dunder-all UP007: non-pep604-annotation-union
fix or add workarouds for several ruff errors like the followings in anyconfig.ioinfo.*. ANN401: any-type COM812: missing-trailing-comma I001: unsorted-imports RUF022: unsorted-dunder-all UP007: non-pep604-annotation-union
fix or add workarouds for several ruff errors like the followings in anyconfig.processors.*. COM812: missing-trailing-comma FIX001: line-contains-fixme I001: unsorted-imports RUF022: unsorted-dunder-all TD001: invalid-todo-tag TD002: missing-todo-author TD003: missing-todo-link TD005: missing-todo-description TID252: relative-imports UP007: non-pep604-annotation-union UP045: non-pep604-annotation-optional
fix or add workarouds for several ruff errors like the followings in tests.*. - ANN003, ANN201, ANN202, ANN401: rules derived from flake8-anntations - ARG001: rules derived from flake8-unused-arguments - COM812, COM819: rules derived from - D100, D101, D200, D204, D205, D400, D415: rules derived from pydocstyle - EM101, EM102: rules derived from flake8-errmsg - ERA001: rules derived from eradicate - FA100: rules derived from flake8-future-annotations - FBT001, FBT002: rules derived from flake8-boolean-trap - FIX001, FIX002: rules derived from flake8-fixme - I001: unsorted-imports derived from isort - PGH004: blanket-noqa derived from pygrep-hooks - PLR0913, PLW2901: rules derived from Pylint - PT006, PT007, PT011, PT012, PT014, PT030: rules derived from flake8-pytest-style - PTH100, PTH118, PTH120, PTH123: rules derived from flake8-use-pathlib - PYI024: collections-named-tuple derived from flake8-pyi - Q000: dbad-quotes-inline-string from flake8-quotes - RUF012, RUF015, RUF022: bultin rules - S603: subprocess-without-shell-equals-true derived from flake8-bandit - SIM115, SIM117: rules derived from flake8-simplify - SLF001: private-member-access derived from flake8-self - TD001, TD002, TD003, TD004, TD005: rules derived from flake8-todos - TID252: relative-importsrules derived from flake8-tidy-imports - TRY003: raise-vanilla-args derived from tryceratops - UP045: non-pep604-annotation-optional derived from pyupgrade
fix or add workarouds for several ruff errors like the followings in anyconfig.schema.*. - ANN003: missing-type-kwargs - ANN401: any-type - COM812: missing-trailing-comma - I001: unsorted-imports - TID252: relative-importsrules - UP045: non-pep604-annotation-optional
fix or add workarouds for several ruff errors like the followings in anyconfig.* (all the rest). - ANN002: missing-type-args - ANN003: missing-type-kwargs - ANN401: any-type - COM812: missing-trailing-comma - I001: unsorted-imports - RUF022: unsorted-dunder-all - TID252: relative-importsrules - UP045: non-pep604-annotation-optional
Standardize the delimiter to '\n' across all platforms including windows in properties and shellvars plugin.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Enable all ruff linter rules by default except for some exceptions together with fixes and workarounds to accomplish that.