Skip to content

Commit 8b7f9a0

Browse files
authored
Merge pull request #3 from alex-rakowski/linters_test
my suggest GA linters actions Former-commit-id: 18ddf65
2 parents 6a86b32 + 93065b1 commit 8b7f9a0

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/linter.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Lint with super-linter@v4
1+
name: Lint with super-linter@v5-slim
22

33
on:
44
push:
@@ -17,10 +17,14 @@ jobs:
1717
fetch-depth: 0
1818

1919
- name: Lint Code Base
20-
uses: github/super-linter@v4
20+
uses: super-linter/super-linter/slim@v5 # updated to latest slim as quicker to download
2121
env:
22-
VALIDATE_ALL_CODEBASE: false
23-
VALIDATE_PYTHON_FLAKE8: true
24-
DEFAULT_BRANCH: "dev"
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
22+
VALIDATE_ALL_CODEBASE: false # only check changes
23+
VALIDATE_PYTHON_FLAKE8: true # lint with flake8
24+
DEFAULT_BRANCH: "dev" # set default branch to dev
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # for github things
26+
# FILTER_REGEX_EXCLUDE: .*test/.* # exclude test dirs
27+
FILTER_REGEX_EXCLUDE: .*__init__.py/.* # exclude test dirs
28+
FILTER_REGEX_INCLUDE: .*py4DSTEM/.* # only look for py4DSTEM
29+
LINTER_RULES_PATH: / # set toplevel dir as the path to look for rules
30+
PYTHON_FLAKE8_CONFIG_FILE: .flake8 # set specific config file

0 commit comments

Comments
 (0)