Skip to content

Commit 11c290d

Browse files
committed
prettier fixes
1 parent 0347c22 commit 11c290d

6 files changed

Lines changed: 86 additions & 87 deletions

File tree

.github/workflows/ci_cron_daily.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -55,29 +55,29 @@ jobs:
5555
prefix: '(Allowed failure)'
5656

5757
steps:
58-
- name: Check out repository
59-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
60-
with:
61-
persist-credentials: false
62-
fetch-depth: 0
63-
- name: Set up Python ${{ matrix.python }}
64-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
65-
with:
66-
python-version: ${{ matrix.python }}
67-
allow-prereleases: true
68-
- name: Install base dependencies
69-
run: python -m pip install --upgrade pip setuptools tox
70-
- name: Print Python, pip, setuptools, and tox versions
71-
run: |
72-
python -c "import sys; print(f'Python {sys.version}')"
73-
python -c "import pip; print(f'pip {pip.__version__}')"
74-
python -c "import setuptools; print(f'setuptools {setuptools.__version__}')"
75-
python -c "import tox; print(f'tox {tox.__version__}')"
76-
- name: Run tests
77-
run: python -m tox -e ${{ matrix.tox_env }} -- ${{ matrix.toxposargs }}
78-
- name: Upload coverage to codecov
79-
if: ${{ contains(matrix.tox_env, '-cov') }}
80-
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
81-
with:
82-
files: ./coverage.xml
83-
verbose: true
58+
- name: Check out repository
59+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
60+
with:
61+
persist-credentials: false
62+
fetch-depth: 0
63+
- name: Set up Python ${{ matrix.python }}
64+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
65+
with:
66+
python-version: ${{ matrix.python }}
67+
allow-prereleases: true
68+
- name: Install base dependencies
69+
run: python -m pip install --upgrade pip setuptools tox
70+
- name: Print Python, pip, setuptools, and tox versions
71+
run: |
72+
python -c "import sys; print(f'Python {sys.version}')"
73+
python -c "import pip; print(f'pip {pip.__version__}')"
74+
python -c "import setuptools; print(f'setuptools {setuptools.__version__}')"
75+
python -c "import tox; print(f'tox {tox.__version__}')"
76+
- name: Run tests
77+
run: python -m tox -e ${{ matrix.tox_env }} -- ${{ matrix.toxposargs }}
78+
- name: Upload coverage to codecov
79+
if: ${{ contains(matrix.tox_env, '-cov') }}
80+
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
81+
with:
82+
files: ./coverage.xml
83+
verbose: true

.github/workflows/ci_cron_weekly.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ jobs:
5050

5151
steps:
5252
- name: Check out repository
53-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
53+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5454
with:
5555
persist-credentials: false
5656
fetch-depth: 0
5757
- name: Set up Python ${{ matrix.python }}
58-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
58+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
5959
with:
6060
python-version: ${{ matrix.python }}
6161
- name: Install base dependencies
@@ -69,7 +69,6 @@ jobs:
6969
- name: Run tests
7070
run: python -m tox -e ${{ matrix.tox_env }} -- ${{ matrix.toxposargs }}
7171

72-
7372
test_more_architectures:
7473
# The following architectures are emulated and are therefore slow, so
7574
# we include them just in the weekly cron. These also serve as a test
@@ -97,11 +96,11 @@ jobs:
9796
- arch: armv7
9897

9998
steps:
100-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
99+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
101100
with:
102101
persist-credentials: false
103102
fetch-depth: 0
104-
- uses: uraimo/run-on-arch-action@d94c13912ea685de38fccc1109385b83fd79427d # v3.0.1
103+
- uses: uraimo/run-on-arch-action@d94c13912ea685de38fccc1109385b83fd79427d # v3.0.1
105104
name: Run tests
106105
id: build
107106
with:

.github/workflows/ci_test_predeps.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,23 @@ jobs:
3333
tox_env: 'py314-test-alldeps-predeps'
3434

3535
steps:
36-
- name: Check out repository
37-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
38-
with:
39-
persist-credentials: false
40-
fetch-depth: 0
41-
- name: Set up Python ${{ matrix.python }}
42-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
43-
with:
44-
python-version: ${{ matrix.python }}
45-
allow-prereleases: true
46-
- name: Install base dependencies
47-
run: python -m pip install --upgrade pip setuptools tox
48-
- name: Print Python, pip, setuptools, and tox versions
49-
run: |
50-
python -c "import sys; print(f'Python {sys.version}')"
51-
python -c "import pip; print(f'pip {pip.__version__}')"
52-
python -c "import setuptools; print(f'setuptools {setuptools.__version__}')"
53-
python -c "import tox; print(f'tox {tox.__version__}')"
54-
- name: Run tests
55-
run: python -m tox -e ${{ matrix.tox_env }} -- -n=2 ${{ matrix.toxposargs }}
36+
- name: Check out repository
37+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
38+
with:
39+
persist-credentials: false
40+
fetch-depth: 0
41+
- name: Set up Python ${{ matrix.python }}
42+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
43+
with:
44+
python-version: ${{ matrix.python }}
45+
allow-prereleases: true
46+
- name: Install base dependencies
47+
run: python -m pip install --upgrade pip setuptools tox
48+
- name: Print Python, pip, setuptools, and tox versions
49+
run: |
50+
python -c "import sys; print(f'Python {sys.version}')"
51+
python -c "import pip; print(f'pip {pip.__version__}')"
52+
python -c "import setuptools; print(f'setuptools {setuptools.__version__}')"
53+
python -c "import tox; print(f'tox {tox.__version__}')"
54+
- name: Run tests
55+
run: python -m tox -e ${{ matrix.tox_env }} -- -n=2 ${{ matrix.toxposargs }}

.github/workflows/ci_tests.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -113,29 +113,29 @@ jobs:
113113
prefix: '(Allowed failure)'
114114

115115
steps:
116-
- name: Check out repository
117-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
118-
with:
119-
persist-credentials: false
120-
fetch-depth: 0
121-
- name: Set up Python ${{ matrix.python }}
122-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
123-
with:
124-
python-version: ${{ matrix.python }}
125-
allow-prereleases: true
126-
- name: Install base dependencies
127-
run: python -m pip install --upgrade pip setuptools tox
128-
- name: Print Python, pip, setuptools, and tox versions
129-
run: |
130-
python -c "import sys; print(f'Python {sys.version}')"
131-
python -c "import pip; print(f'pip {pip.__version__}')"
132-
python -c "import setuptools; print(f'setuptools {setuptools.__version__}')"
133-
python -c "import tox; print(f'tox {tox.__version__}')"
134-
- name: Run tests
135-
run: python -m tox -e ${{ matrix.tox_env }} -- -n=2 ${{ matrix.toxposargs }}
136-
- name: Upload coverage to codecov
137-
if: ${{ contains(matrix.tox_env, '-cov') }}
138-
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
139-
with:
140-
files: ./coverage.xml
141-
verbose: true
116+
- name: Check out repository
117+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
118+
with:
119+
persist-credentials: false
120+
fetch-depth: 0
121+
- name: Set up Python ${{ matrix.python }}
122+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
123+
with:
124+
python-version: ${{ matrix.python }}
125+
allow-prereleases: true
126+
- name: Install base dependencies
127+
run: python -m pip install --upgrade pip setuptools tox
128+
- name: Print Python, pip, setuptools, and tox versions
129+
run: |
130+
python -c "import sys; print(f'Python {sys.version}')"
131+
python -c "import pip; print(f'pip {pip.__version__}')"
132+
python -c "import setuptools; print(f'setuptools {setuptools.__version__}')"
133+
python -c "import tox; print(f'tox {tox.__version__}')"
134+
- name: Run tests
135+
run: python -m tox -e ${{ matrix.tox_env }} -- -n=2 ${{ matrix.toxposargs }}
136+
- name: Upload coverage to codecov
137+
if: ${{ contains(matrix.tox_env, '-cov') }}
138+
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
139+
with:
140+
files: ./coverage.xml
141+
verbose: true

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
permissions:
3333
contents: none
3434

35-
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@2835f0cacddf3f8de198db9afdb5354a5cebe0ef # v2.6.3
35+
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@2835f0cacddf3f8de198db9afdb5354a5cebe0ef # v2.6.3
3636

3737
if: |
3838
github.repository == 'astropy/regions' &&

.pre-commit-config.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ repos:
3434
# Replace double-quoted strings with single-quoted strings.
3535
- id: end-of-file-fixer
3636
# Makes sure files end in a newline and only a newline.
37-
exclude: ".*(svg.*|extern.*|pkl.*|reg.*)$"
37+
exclude: '.*(svg.*|extern.*|pkl.*|reg.*)$'
3838
- id: trailing-whitespace
3939
# Trims trailing whitespace.
40-
exclude: ".*(data.*|extern.*)$"
40+
exclude: '.*(data.*|extern.*)$'
4141

4242
- repo: https://github.com/pre-commit/pygrep-hooks
4343
rev: v1.10.0
@@ -55,10 +55,10 @@ repos:
5555
# Enforce that all noqa annotations always occur with specific codes.
5656

5757
- repo: https://github.com/astral-sh/ruff-pre-commit
58-
rev: "v0.15.12"
58+
rev: 'v0.15.12'
5959
hooks:
6060
- id: ruff-check
61-
args: ["--fix", "--show-fixes"]
61+
args: ['--fix', '--show-fixes']
6262

6363
- repo: https://github.com/scientific-python/cookie
6464
rev: 2026.04.04
@@ -80,21 +80,21 @@ repos:
8080
rev: 7.3.0
8181
hooks:
8282
- id: flake8
83-
args: ["--ignore", "E501,W503"]
83+
args: ['--ignore', 'E501,W503']
8484

8585
- repo: https://github.com/codespell-project/codespell
8686
rev: v2.4.2
8787
hooks:
8888
- id: codespell
89-
args: ["--write-changes"]
89+
args: ['--write-changes']
9090
additional_dependencies:
9191
- tomli
9292

9393
- repo: https://github.com/numpy/numpydoc
9494
rev: v1.10.0
9595
hooks:
9696
- id: numpydoc-validation
97-
exclude: "extern/"
97+
exclude: 'extern/'
9898

9999
# TMP: disabled until new release (Python 3.14 support and without
100100
# requiring untokenize) and various regressions are fixed
@@ -109,13 +109,13 @@ repos:
109109
- repo: https://github.com/woodruffw/zizmor-pre-commit
110110
rev: v1.24.1
111111
hooks:
112-
- id: zizmor
112+
- id: zizmor
113113

114114
- repo: https://github.com/sphinx-contrib/sphinx-lint
115115
rev: v1.0.2
116116
hooks:
117117
- id: sphinx-lint
118-
exclude: "(docs/_build/|regions/extern/)"
118+
exclude: '(docs/_build/|regions/extern/)'
119119

120120
- repo: https://github.com/rbubley/mirrors-prettier
121121
rev: v3.8.3

0 commit comments

Comments
 (0)