diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 00000000..b2316674 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,25 @@ +# Codespell configuration is within pyproject.toml +--- +name: Codespell + +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: read + +jobs: + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Annotate locations with typos + uses: codespell-project/codespell-problem-matcher@v1 + - name: Codespell + uses: codespell-project/actions-codespell@v2 diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 4fcda6ff..f35b12de 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -5,7 +5,7 @@ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender -identity and expression, level of experience, education, socio-economic status, +identity and expression, level of experience, education, socioeconomic status, nationality, personal appearance, race, religion, or sexual identity and orientation. diff --git a/pyproject.toml b/pyproject.toml index b5a3c468..7770b07c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,4 +3,10 @@ requires = [ "setuptools>=42", "wheel" ] -build-backend = "setuptools.build_meta" \ No newline at end of file +build-backend = "setuptools.build_meta" +[tool.codespell] +# Ref: https://github.com/codespell-project/codespell#using-a-config-file +skip = '.git*,*.svg,*.css,*.min.*,addons' +check-hidden = true +ignore-regex = '\b/dev/dri/renderD\b' +ignore-words-list = 'implementors' diff --git a/src/selkies_gstreamer/__main__.py b/src/selkies_gstreamer/__main__.py index 050718d9..b2dea321 100644 --- a/src/selkies_gstreamer/__main__.py +++ b/src/selkies_gstreamer/__main__.py @@ -406,7 +406,7 @@ def main(): help='GStreamer video encoder to use') parser.add_argument('--gpu_id', default=os.environ.get('SELKIES_GPU_ID', '0'), - help='GPU ID for GStreamer hardware video encoders, will use enumerated GPU ID (0, 1, ..., n) for NVIDIA and /dev/dri/renderD{128 + n} for VA-API') + help='GPU ID for GStreamer hardware video encoders, will use enumerated GPU ID (0, 1, ..., n) for NVIDIA and /dev/dri/rendered{128 + n} for VA-API') parser.add_argument('--framerate', default=os.environ.get('SELKIES_FRAMERATE', '60'), help='Framerate of the streamed remote desktop')