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

Misc. clean up to rounding rules #15231

Merged
merged 1 commit into from
Jan 2, 2025
Merged

Misc. clean up to rounding rules #15231

merged 1 commit into from
Jan 2, 2025

Conversation

charliermarsh
Copy link
Member

No description provided.

@charliermarsh charliermarsh added the internal An internal refactor or improvement label Jan 2, 2025
@charliermarsh charliermarsh merged commit 2355472 into main Jan 2, 2025
21 checks passed
@charliermarsh charliermarsh deleted the charlie/random branch January 2, 2025 22:51
Copy link
Contributor

github-actions bot commented Jan 2, 2025

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

ℹ️ ecosystem check detected linter changes. (+15 -15 violations, +0 -0 fixes in 5 projects; 50 projects unchanged)

RasaHQ/rasa (+1 -1 violations, +0 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --preview

+ rasa/shared/core/training_data/loading.py:86:15: RUF046 Value being cast to `int` is already an integer
- rasa/shared/core/training_data/loading.py:86:15: RUF046 Value being casted is already an integer

apache/superset (+2 -2 violations, +0 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --preview --select ALL

+ superset/migrations/versions/2018-07-22_11-59_bebcf3fed1fe_convert_dashboard_v1_positions.py:197:40: RUF046 Value being cast to `int` is already an integer
- superset/migrations/versions/2018-07-22_11-59_bebcf3fed1fe_convert_dashboard_v1_positions.py:197:40: RUF046 Value being casted is already an integer
+ superset/migrations/versions/2018-07-22_11-59_bebcf3fed1fe_convert_dashboard_v1_positions.py:199:29: RUF046 Value being cast to `int` is already an integer
- superset/migrations/versions/2018-07-22_11-59_bebcf3fed1fe_convert_dashboard_v1_positions.py:199:29: RUF046 Value being casted is already an integer

bokeh/bokeh (+5 -5 violations, +0 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --preview --select ALL

+ examples/server/app/spectrogram/main.py:107:13: RUF046 Value being cast to `int` is already an integer
- examples/server/app/spectrogram/main.py:107:13: RUF046 Value being casted is already an integer
+ src/bokeh/colors/color.py:338:60: RUF046 Value being cast to `int` is already an integer
- src/bokeh/colors/color.py:338:60: RUF046 Value being casted is already an integer
+ src/bokeh/palettes.py:1530:27: RUF046 Value being cast to `int` is already an integer
- src/bokeh/palettes.py:1530:27: RUF046 Value being casted is already an integer
+ src/bokeh/palettes.py:1568:10: RUF046 Value being cast to `int` is already an integer
- src/bokeh/palettes.py:1568:10: RUF046 Value being casted is already an integer
+ src/bokeh/palettes.py:1569:10: RUF046 Value being cast to `int` is already an integer
- src/bokeh/palettes.py:1569:10: RUF046 Value being casted is already an integer

rotki/rotki (+1 -1 violations, +0 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --preview

+ rotkehlchen/tests/utils/ethereum.py:231:15: RUF046 [*] Value being cast to `int` is already an integer
- rotkehlchen/tests/utils/ethereum.py:231:15: RUF046 [*] Value being casted is already an integer

astropy/astropy (+6 -6 violations, +0 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --preview

+ astropy/io/fits/hdu/compressed/tests/test_compressed.py:375:26: RUF046 Value being cast to `int` is already an integer
- astropy/io/fits/hdu/compressed/tests/test_compressed.py:375:26: RUF046 Value being casted is already an integer
+ astropy/io/fits/hdu/compressed/utils.py:102:13: RUF046 Value being cast to `int` is already an integer
- astropy/io/fits/hdu/compressed/utils.py:102:13: RUF046 Value being casted is already an integer
+ astropy/io/fits/tests/test_image.py:1003:26: RUF046 Value being cast to `int` is already an integer
- astropy/io/fits/tests/test_image.py:1003:26: RUF046 Value being casted is already an integer
+ astropy/io/votable/validator/html.py:246:14: RUF046 Value being cast to `int` is already an integer
- astropy/io/votable/validator/html.py:246:14: RUF046 Value being casted is already an integer
+ astropy/modeling/_fitting_parallel.py:194:22: RUF046 Value being cast to `int` is already an integer
- astropy/modeling/_fitting_parallel.py:194:22: RUF046 Value being casted is already an integer
+ astropy/utils/console.py:365:21: RUF046 Value being cast to `int` is already an integer
- astropy/utils/console.py:365:21: RUF046 Value being casted is already an integer

Changes by rule (1 rules affected)

code total + violation - violation + fix - fix
RUF046 30 15 15 0 0

dcreager added a commit that referenced this pull request Jan 3, 2025
* main:
  [`ruff`] Avoid reporting when `ndigits` is possibly negative (`RUF057`) (#15234)
  Attribute panics to the mdtests that cause them (#15241)
  Show errors for attempted fixes only when passed `--verbose` (#15237)
  [`RUF`] Add rule to detect empty literal in deque call (`RUF025`) (#15104)
  TD003: remove issue code length restriction (#15175)
  Preserve multiline implicit concatenated strings in docstring positions (#15126)
  [`pyflakes`] Ignore errors in `@no_type_check` string annotations (`F722`, `F821`) (#15215)
  style(AIR302): rename removed_airflow_plugin_extension as check_airflow_plugin_extension (#15233)
  [`pylint`] Re-implement `unreachable` (`PLW0101`) (#10891)
  refactor(AIR303): move duplicate qualified_name.to_string() to Diagnostic argument (#15220)
  Misc. clean up to rounding rules (#15231)
  Avoid syntax error when removing int over multiple lines (#15230)
  Migrate renovate config (#15228)
  Remove `Type::tuple` in favor of `TupleType::from_elements` (#15218)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal An internal refactor or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant