Skip to content

Commit 47e5c2b

Browse files
authored
Ruff Rules and Some Maintenance (#114)
1 parent d540a69 commit 47e5c2b

File tree

100 files changed

+1463
-1335
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+1463
-1335
lines changed

.git-blame-ignore-revs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Run this command to always ignore formatting commits in `git blame`
2+
# git config blame.ignoreRevsFile .git-blame-ignore-revs
3+
4+
# Ruff rules refactoring, part 1
5+
# insert_commit_sha_and_uncomment
6+
7+
# Ruff rules refactoring, part 1
8+
# insert_commit_sha_and_uncomment

.github/workflows/coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
python-version: "3.13"
1919

2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v5
2222

2323
- name: Install uv and Python ${{ env.python-version }}
2424
uses: astral-sh/setup-uv@v6
@@ -38,6 +38,6 @@ jobs:
3838
run: make tests
3939

4040
- name: Upload Coverage to Codecov
41-
uses: codecov/codecov-action@v4
41+
uses: codecov/codecov-action@v5
4242
with:
4343
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/cron.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
fail-fast: false
2222

2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@v5
2525

2626
- name: Install uv and Python ${{ matrix.python-version }}
2727
uses: astral-sh/setup-uv@v6

.github/workflows/docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919

20-
- name: Check Out Repo
21-
uses: actions/checkout@v4
20+
- name: Check Out Repo
21+
uses: actions/checkout@v5
2222

2323
- name: Set up QEMU
2424
uses: docker/setup-qemu-action@v3

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
python-version: "3.13"
1919

2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v5
2222

2323
- name: Update apt
2424
run: sudo apt-get update

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818

1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v5
2121

2222
- name: Install uv and Python ${{ env.python-version }}
2323
uses: astral-sh/setup-uv@v6

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
fail-fast: false
2222

2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@v5
2525

2626
- name: Install uv and Python ${{ matrix.python-version }}
2727
uses: astral-sh/setup-uv@v6

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
# -- Project information -----------------------------------------------------
4343

4444
project = "PyhDToolkit"
45-
copyright = f"2019, {pyhdtoolkit.__author__}"
45+
copyright_ = f"2019, {pyhdtoolkit.__author__}"
4646
author = pyhdtoolkit.__author__
4747

4848
rst_prolog = f""":github_url: {pyhdtoolkit.__url__}"""
@@ -175,7 +175,7 @@
175175
"capture_repr": ("_repr_html_",),
176176
"compress_images": ("images", "thumbnails", "-o1"),
177177
"only_warn_on_example_error": True, # keep the build going if an example fails, important for doc workflow
178-
"parallel": -1, # number of jobs to use to build the gallery
178+
"parallel": 1, # number of jobs to use to build the gallery
179179
"write_computation_times": False, # do not write time to run example in the output
180180
}
181181

examples/demo_acd_tracking_spectra.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import matplotlib.pyplot as plt
3535
import numpy as np
3636
import pandas as pd
37-
3837
from cpymad.madx import Madx
3938

4039
from pyhdtoolkit.cpymadtools import lhc, matching, track

examples/demo_aperture.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"""
2424

2525
import matplotlib.pyplot as plt
26-
2726
from cpymad.madx import Madx
2827

2928
from pyhdtoolkit.cpymadtools import lhc

0 commit comments

Comments
 (0)