Skip to content

Commit

Permalink
vcs-diff-lint: again scan sub-projects
Browse files Browse the repository at this point in the history
For some pylint checkers related to "imports" it makes a practical
difference if we scan the whole git directory, or sub-directories.
This layout makes the layout more "realistic", e.g. "mock" or "behave"
is not considered a python module.

This reverts commit b5c9469.
  • Loading branch information
praiskup committed Sep 30, 2024
1 parent 8e76562 commit f3a128d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/python-diff-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
uses: fedora-copr/vcs-diff-lint-action@v1
id: VCS_Diff_Lint
with:
subdirectories: |
behave
mock
releng
linter_tags: |
ruff
pylint
Expand Down
Empty file added behave/.vcs-diff-lint.yml
Empty file.
13 changes: 13 additions & 0 deletions behave/pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# mock pylint configuration for behave/ subdir

[MESSAGES CONTROL]

# Reasoning for wide warning ignore
# ---------------------------------
# import-error
# This is here to silence Pylint in CI where we do not have all the
# build/runtime dependencies installed.
# cyclic-import
# Seems like cyclic-import is just a style check which is not going to be
# fixed: https://github.com/PyCQA/pylint/issues/6983
disable=import-error,cyclic-import
1 change: 0 additions & 1 deletion pylintrc

This file was deleted.

Empty file added releng/.vcs-diff-lint.yml
Empty file.

0 comments on commit f3a128d

Please sign in to comment.