Skip to content

Commit 8712c22

Browse files
committed
Make formatting consistent
1 parent d9e217e commit 8712c22

4 files changed

Lines changed: 18 additions & 41 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
parallel: true
6060
file: coverage.lcov
6161

62-
# Test that mypyc-compiled wheels work
62+
# Test that `mypyc`-compiled wheels work.
6363
test-mypyc:
6464
name: Test mypyc wheel
6565
runs-on: ubuntu-latest

.github/workflows/codeql.yml

Lines changed: 10 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "CodeQL Advanced"
1+
name: CodeQL Advanced
22

33
on:
44
push:
@@ -15,16 +15,17 @@ jobs:
1515
# - https://gh.io/recommended-hardware-resources-for-running-codeql
1616
# - https://gh.io/supported-runners-and-hardware-resources
1717
# - https://gh.io/using-larger-runners (GitHub.com only)
18-
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
18+
# Consider using larger runners or machines with greater resources for possible
19+
# analysis time improvements.
1920
runs-on: ubuntu-latest
2021
permissions:
21-
# required for all workflows
22+
# Required for all workflows:
2223
security-events: write
2324

24-
# required to fetch internal or private CodeQL packs
25+
# Required to fetch internal or private CodeQL packs:
2526
packages: read
2627

27-
# only required for workflows in private repositories
28+
# Only required for workflows in private repositories:
2829
actions: read
2930
contents: read
3031

@@ -36,49 +37,25 @@ jobs:
3637
build-mode: none
3738
- language: python
3839
build-mode: none
39-
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift'
40-
# Use `c-cpp` to analyze code written in C, C++ or both
41-
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
42-
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
43-
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
44-
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
45-
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
46-
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
4740
steps:
4841
- name: Checkout repository
4942
uses: actions/checkout@v4
5043

51-
# Add any setup steps before running the `github/codeql-action/init` action.
52-
# This includes steps like installing compilers or runtimes (`actions/setup-node`
53-
# or others). This is typically only required for manual builds.
54-
# - name: Setup runtime (example)
55-
# uses: actions/setup-example@v1
56-
5744
# Initializes the CodeQL tools for scanning.
5845
- name: Initialize CodeQL
5946
uses: github/codeql-action/init@v4
6047
with:
6148
languages: ${{ matrix.language }}
6249
build-mode: ${{ matrix.build-mode }}
63-
# If you wish to specify custom queries, you can do so here or in a config file.
64-
# By default, queries listed here will override any specified in a config file.
65-
# Prefix the list here with "+" to use these queries and those in the config file.
66-
67-
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
68-
# queries: security-extended,security-and-quality
6950

70-
# If the analyze step fails for one of the languages you are analyzing with
71-
# "We were unable to automatically build your code", modify the matrix above
72-
# to set the build mode to "manual" for that language. Then modify this step
73-
# to build your code.
74-
# ℹ️ Command-line programs to run using the OS shell.
75-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
51+
# See https://docs.github.com/en/enterprise-server@3.16/code-security/how-tos/scan-code-for-vulnerabilities/manage-your-configuration/codeql-code-scanning-for-compiled-languages#using-multiple-build-modes-in-a-multi-language-repository
7652
- name: Run manual build steps
53+
7754
if: matrix.build-mode == 'manual'
7855
shell: bash
7956
run: |
80-
echo 'If you are using a "manual" build mode for one or more of the' \
81-
'languages you are analyzing, replace this with the commands to build' \
57+
echo 'If you are using a "manual" build mode for one or more of the ' \
58+
'languages you are analyzing, replace this with the commands to build ' \
8259
'your code, for example:'
8360
echo ' make bootstrap'
8461
echo ' make release'

.github/workflows/publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ on:
1111
default: false
1212
type: boolean
1313

14-
# Cancel any in-progress build when a new commit is pushed
14+
# Cancel any in-progress build when a new commit is pushed.
1515
concurrency:
1616
group: ${{ github.workflow }}-${{ github.ref }}
1717
cancel-in-progress: true
1818

1919
jobs:
20-
# Build the sdist and pure Python wheel
20+
# Build the `sdist` and pure Python wheel.
2121
sdist-and-wheel:
2222
name: Build sdist and pure wheel
2323
runs-on: ubuntu-latest
@@ -46,7 +46,7 @@ jobs:
4646
name: wheel-pure
4747
path: dist/*.whl
4848

49-
# Generate the wheel build matrix dynamically
49+
# Generate the wheel build matrix dynamically.
5050
generate-wheels-matrix:
5151
name: Generate wheels matrix
5252
runs-on: ubuntu-latest
@@ -70,7 +70,7 @@ jobs:
7070
MATRIX=$(jq -sc '.' /tmp/*_builds.json | jq -c '.')
7171
echo "include=$MATRIX" >> "$GITHUB_OUTPUT"
7272
73-
# Build mypyc-compiled wheels using cibuildwheel
73+
# Build `mypyc`-compiled wheels using `cibuildwheel`.
7474
mypyc-wheels:
7575
name: Build ${{ matrix.only }}
7676
needs: generate-wheels-matrix
@@ -97,12 +97,12 @@ jobs:
9797
name: wheel-${{ matrix.only }}
9898
path: wheelhouse/*.whl
9999

100-
# Publish to PyPI using trusted publishing
100+
# Publish to PyPI using trusted publishing.
101101
publish:
102102
name: Publish to PyPI
103103
needs: [sdist-and-wheel, mypyc-wheels]
104104
runs-on: ubuntu-latest
105-
# Only publish on release events or manual trigger with publish=true
105+
# Only publish on release events or manual trigger with `publish=true`.
106106
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && inputs.publish)
107107
environment:
108108
name: pypi

src/plum/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
)
110110
from ._version import __version__ # noqa: F401 # noqa: F401
111111

112-
# If mypyc compiled, one of the core modules will be a native extension
112+
# If `mypyc`-compiled, one of the core modules will be a native extension.
113113
spec = importlib.util.find_spec("plum._bear")
114114
COMPILED = (
115115
spec is not None

0 commit comments

Comments
 (0)