Skip to content

Commit

Permalink
Ignore either of W503 or W504 flake8 warnings
Browse files Browse the repository at this point in the history
Also clean up YAML files with yamllint.
  • Loading branch information
DimitriPapadopoulos committed Sep 16, 2021
1 parent 22d4f78 commit 996ea7f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/codespell-private.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# GitHub Action to check our dictionary, this should only be used by the codespell project itself
# For general usage in your repo, see the example in codespell.yml
# https://github.com/codespell-project/codespell
---
name: codespell
on: [push, pull_request]
jobs:
Expand Down Expand Up @@ -45,7 +46,7 @@ jobs:
uses: actions/setup-python@v2
- uses: actions/checkout@v2
- name: Install general dependencies
run: pip install -U pip wheel # upgrade to latest pip find 3.5 wheels; wheel to avoid errors
run: pip install -U pip wheel # upgrade to latest pip find 3.5 wheels; wheel to avoid errors
- name: Install codespell dependencies
run: pip install -e ".[dev]"
- uses: codespell-project/sort-problem-matcher@v1
Expand All @@ -56,4 +57,4 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Flake8 with annotations
uses: TrueBrain/actions-flake8@v1.2
uses: TrueBrain/actions-flake8@v2
5 changes: 3 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
clone_depth: 50

environment:
Expand All @@ -14,14 +15,14 @@ cache:
install:
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "pip install codecov chardet setuptools"
- "pip install -e \".[dev]\"" # install the codespell dev packages
- "pip install -e \".[dev]\"" # install the codespell dev packages
- "python setup.py develop"

build: false # Not a C# project, build stuff at the test step instead.

test_script:
- "codespell --help"
- "flake8"
- "flake8 --ignore=W504"
- "pytest codespell_lib"

on_success:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ addopts = --cov=codespell_lib --showlocals -rs --cov-report=

[flake8]
exclude = build, ci-helpers
ignore =
ignore = W504

0 comments on commit 996ea7f

Please sign in to comment.