Skip to content

[pre-commit.ci] auto fixes from pre-commit.com hooks

d82ad22
Select commit
Loading
Failed to load commit list.
Open

Add Ruff formatter to pre-commit for Python #1852

[pre-commit.ci] auto fixes from pre-commit.com hooks
d82ad22
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL succeeded Mar 3, 2026 in 3s

18 new alerts

New alerts in code changed by this pull request

  • 18 notes

See annotations below for details.

View all branch alerts.

Annotations

Check notice on line 27 in examples/2a_read_thetaMode_serial.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused global variable Note

The global variable 'E_z_m0' is not used.

Check notice on line 29 in examples/2a_read_thetaMode_serial.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused global variable Note

The global variable 'E_z_m1' is not used.

Check notice on line 98 in src/binding/python/openpmd_api/pipe/__main__.py

See this annotation in the file changed.

Code scanning / CodeQL

Use of a print statement at module level Note

Print statement may execute during import.

Check notice on line 777 in test/python/unittest/API/APITest.py

See this annotation in the file changed.

Code scanning / CodeQL

Imprecise assert Note test

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.

Check notice on line 780 in test/python/unittest/API/APITest.py

See this annotation in the file changed.

Code scanning / CodeQL

Imprecise assert Note test

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.

Check notice on line 783 in test/python/unittest/API/APITest.py

See this annotation in the file changed.

Code scanning / CodeQL

Imprecise assert Note test

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.

Check notice on line 802 in test/python/unittest/API/APITest.py

See this annotation in the file changed.

Code scanning / CodeQL

Imprecise assert Note test

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.

Check notice on line 809 in test/python/unittest/API/APITest.py

See this annotation in the file changed.

Code scanning / CodeQL

Imprecise assert Note test

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.

Check notice on line 814 in test/python/unittest/API/APITest.py

See this annotation in the file changed.

Code scanning / CodeQL

Imprecise assert Note test

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.

Check notice on line 850 in test/python/unittest/API/APITest.py

See this annotation in the file changed.

Code scanning / CodeQL

Imprecise assert Note test

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.

Check notice on line 854 in test/python/unittest/API/APITest.py

See this annotation in the file changed.

Code scanning / CodeQL

Imprecise assert Note test

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.

Check notice on line 858 in test/python/unittest/API/APITest.py

See this annotation in the file changed.

Code scanning / CodeQL

Imprecise assert Note test

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.

Check notice on line 862 in test/python/unittest/API/APITest.py

See this annotation in the file changed.

Code scanning / CodeQL

Imprecise assert Note test

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.

Check notice on line 866 in test/python/unittest/API/APITest.py

See this annotation in the file changed.

Code scanning / CodeQL

Imprecise assert Note test

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.

Check notice on line 874 in test/python/unittest/API/APITest.py

See this annotation in the file changed.

Code scanning / CodeQL

Imprecise assert Note test

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.

Check notice on line 905 in test/python/unittest/API/APITest.py

See this annotation in the file changed.

Code scanning / CodeQL

Imprecise assert Note test

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.

Check notice on line 906 in test/python/unittest/API/APITest.py

See this annotation in the file changed.

Code scanning / CodeQL

Imprecise assert Note test

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.

Check notice on line 908 in test/python/unittest/API/APITest.py

See this annotation in the file changed.

Code scanning / CodeQL

Imprecise assert Note test

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.