Skip to content

Commit 094d4c8

Browse files
authored
AISDK-184: Implement Link Checker in Python SDK (revdotcom#80)
1 parent c7fc550 commit 094d4c8

File tree

4 files changed

+26
-2
lines changed

4 files changed

+26
-2
lines changed

.github/workflows/links_fail_fast.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Broken Link Checker
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
linkChecker:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- name: Link Checker
14+
uses: lycheeverse/lychee-action@e1ef974431881438bf594f458e332b099fd33bb5 #v1.4.1 https://github.com/lycheeverse/lychee-action#security-tip
15+
with:
16+
args: --verbose --no-progress './**/*.md' './**/*.html' './**/*.py'
17+
fail: true
18+
env:
19+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.lycheeignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# API Domain stubs used as url partials in the api clients
2+
api.rev.ai
3+
4+
# example domains used in unit tests
5+
example.com

src/rev_ai/baseclient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
class BaseClient:
11-
"""Base for clients that communicate with RevAI Apis"""
11+
"""Base for clients that communicate with Rev AI Apis"""
1212

1313
# Default version of Rev AI
1414
version = 'v1'

tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
"""Unit tests for RevAi Utils"""
2+
"""Unit tests for Rev Ai Utils"""
33

44
from src.rev_ai.utils import _process_vocabularies
55
from src.rev_ai.models import CustomVocabulary

0 commit comments

Comments
 (0)