Skip to content

Commit

Permalink
CI/hooks: Bring py3 scripts under test per request (#2184)
Browse files Browse the repository at this point in the history
**Summary**
1st attempt at ensuring that all available common/Scripts/*.py files get
linted as part of commits.

**Test Plan**
Run `go-task init && go-task check` and observe that nothing blows up
when git hooks are run.

**Checklist**

~~- [x] Package was built and tested against unstable~~
  • Loading branch information
silkeh authored Apr 7, 2024
2 parents 87f0006 + 1a66ee4 commit 2b03ae7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/script_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ jobs:
python-version: "3.10"
- name: flake8 Lint
uses: py-actions/flake8@v2
with:
path: common/CI common/Hooks common/Scripts/worklog.py
with:
path: >-
common/CI
common/Hooks
common/Scripts
- name: mypy lint
uses: jpetrucciani/mypy-check@master
with:
Expand Down
4 changes: 0 additions & 4 deletions common/Scripts/yauto.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,6 @@ def create_yaml(self):
setup = "%perl_setup"
build = "%perl_build"
install = "%perl_install"
# Unused, but left in for historical purposes
#sample_actions = os.path.join(
# self.template_dir, "actions.perlmodules.sample.py"
#)
elif self.compile_type == CABAL:
setup = "%cabal_configure"
build = "%cabal_build"
Expand Down

0 comments on commit 2b03ae7

Please sign in to comment.