Skip to content

Commit

Permalink
prepare codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan6419846 committed Mar 27, 2024
1 parent 4ffc380 commit ac89cdb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,8 @@ jobs:
- name: mypy
run:
mypy --strict license_tools/ tests/
# Enable after https://github.com/codespell-project/codespell/issues/3387 and
# https://github.com/codespell-project/codespell/issues/3381 are resolved.
# - name: codespell
# run:
# codespell
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ requires = [
'setuptools',
'wheel',
]

[tool.codespell]
check-hidden = true
skip = './.git*,./.mypy_cache/*,./todo/*'
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
],
extras_require={
"dev": [
"codespell",
"flake8",
"flake8-bugbear",
"pep8-naming",
Expand Down
10 changes: 5 additions & 5 deletions tests/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
SETUP_PY_LICENSES = Licenses(
detected_license_expression="apache-2.0 AND (unknown-license-reference AND apache-2.0)",
detected_license_expression_spdx="Apache-2.0 AND (LicenseRef-scancode-unknown-license-reference AND Apache-2.0)",
percentage_of_license_text=19.66,
percentage_of_license_text=19.55,
license_detections=[
LicenseDetection(
license_expression="apache-2.0",
Expand Down Expand Up @@ -145,8 +145,8 @@
matches=[
LicenseMatch(
score=95.0,
start_line=50,
end_line=50,
start_line=51,
end_line=51,
matched_length=6,
match_coverage=100.0,
matcher="2-aho",
Expand All @@ -163,8 +163,8 @@
license_clues=[
LicenseClue(
score=50.0,
start_line=56,
end_line=56,
start_line=57,
end_line=57,
matched_length=3,
match_coverage=100.0,
matcher="2-aho",
Expand Down

0 comments on commit ac89cdb

Please sign in to comment.