mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-18 09:57:40 +03:00
github/pr-checks: We provide flake8 filenames, so lose the '.'
This commit is contained in:
parent
5c704e9932
commit
486fb6b7e6
4
.github/workflows/pr-checks.yml
vendored
4
.github/workflows/pr-checks.yml
vendored
@ -87,13 +87,13 @@ jobs:
|
|||||||
# F82 - undefined checking
|
# F82 - undefined checking
|
||||||
git diff --name-only --diff-filter=d -z "refs/remotes/${BASE_REPO_OWNER}/${BASE_REF}" -- | \
|
git diff --name-only --diff-filter=d -z "refs/remotes/${BASE_REPO_OWNER}/${BASE_REF}" -- | \
|
||||||
grep -E -z -Z '\.py$' | \
|
grep -E -z -Z '\.py$' | \
|
||||||
xargs -0 flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
xargs -0 flake8 --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||||
# Can optionally add `--exit-zero` to the flake8 arguments so that
|
# Can optionally add `--exit-zero` to the flake8 arguments so that
|
||||||
# this doesn't fail the build.
|
# this doesn't fail the build.
|
||||||
# explicitly ignore docstring errors (start with D)
|
# explicitly ignore docstring errors (start with D)
|
||||||
git diff --name-only --diff-filter=d -z "refs/remotes/${BASE_REPO_OWNER}/${BASE_REF}" -- | \
|
git diff --name-only --diff-filter=d -z "refs/remotes/${BASE_REPO_OWNER}/${BASE_REF}" -- | \
|
||||||
grep -E -z -Z '\.py$' | \
|
grep -E -z -Z '\.py$' | \
|
||||||
xargs -0 flake8 . --count --statistics --extend-ignore D
|
xargs -0 flake8 --count --statistics --extend-ignore D
|
||||||
####################################################################
|
####################################################################
|
||||||
|
|
||||||
####################################################################
|
####################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user