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

[Bug]: top-level linter settings are deprecated in favour of their counterparts in the lint section. #2250

Closed
1 task done
Bepitic opened this issue Aug 16, 2024 · 0 comments · Fixed by #2269
Closed
1 task done

Comments

@Bepitic
Copy link
Contributor

Bepitic commented Aug 16, 2024

Describe the bug

from time to time pre-commit run
outputs this error.
re running the command fix it.

Dataset

N/A

Model

N/A

Steps to reproduce the behavior

(restart the pc?)
and run pre-commit run --all-files

OS information

OS information:

  • OS: [e.g. Ubuntu 20.04]
  • Python version: [e.g. 3.10.0]
  • Anomalib version: [e.g. 0.3.6]
  • PyTorch version: [e.g. 1.9.0]
  • CUDA/cuDNN version: [e.g. 11.1]
  • GPU models and configuration: [e.g. 2x GeForce RTX 3090]
  • Any other relevant information: [e.g. I'm using a custom dataset]

Expected behavior

all passing.

Screenshots

No response

Pip/GitHub

pip

What version/branch did you use?

No response

Configuration YAML

.

Logs

trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
check yaml...............................................................Passed
check for added large files..............................................Passed
debug statements (python)................................................Passed
detect private key.......................................................Passed
ruff.....................................................................Failed
- hook id: ruff
- files were modified by this hook

warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `pyproject.toml`:
  - 'dummy-variable-rgx' -> 'lint.dummy-variable-rgx'
  - 'fixable' -> 'lint.fixable'
  - 'ignore' -> 'lint.ignore'
  - 'select' -> 'lint.select'
  - 'unfixable' -> 'lint.unfixable'
  - 'mccabe' -> 'lint.mccabe'
  - 'pydocstyle' -> 'lint.pydocstyle'
warning: Selection `CPY` has no effect because preview is not enabled.
Found 1 error (1 fixed, 0 remaining).

ruff-format..............................................................Failed
- hook id: ruff-format
- files were modified by this hook

warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `pyproject.toml`:
  - 'dummy-variable-rgx' -> 'lint.dummy-variable-rgx'
  - 'fixable' -> 'lint.fixable'
  - 'ignore' -> 'lint.ignore'
  - 'select' -> 'lint.select'
  - 'unfixable' -> 'lint.unfixable'
  - 'mccabe' -> 'lint.mccabe'
  - 'pydocstyle' -> 'lint.pydocstyle'
warning: Selection `CPY` has no effect because preview is not enabled.
warning: The following rules may cause conflicts when used with the formatter: `COM812`, `ISC001`. To avoid unexpected behavior, we recommend disabling these rules, either by removing them from the `select` or `extend-select` configuration, or adding them to the `ignore` configuration.
1 file reformatted, 349 files left unchanged

mypy.....................................................................Passed
bandit...................................................................Passed
nbqa-ruff................................................................Passed
prettier.................................................................Passed
markdownlint.............................................................Passed

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant