Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
9fc9fd02
Commit
9fc9fd02
authored
Aug 17, 2023
by
baberabb
Browse files
consolidated precommit to linter
parent
da77b216
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
13 deletions
+15
-13
.github/workflows/pull_request.yml
.github/workflows/pull_request.yml
+13
-13
.github/workflows/unit_tests.yml
.github/workflows/unit_tests.yml
+2
-0
No files found.
.github/workflows/pull_request.yml
View file @
9fc9fd02
name
:
Pull Request
#
name: Pull Request
#
on
:
[
pull_request
]
#
on: [pull_request]
#
jobs
:
#
jobs:
pre-commit
:
#
pre-commit:
runs-on
:
ubuntu-20.04
#
runs-on: ubuntu-20.04
steps
:
#
steps:
-
uses
:
actions/checkout@v3
#
- uses: actions/checkout@v3
-
uses
:
actions/setup-python@v4
#
- uses: actions/setup-python@v4
with
:
#
with:
python-version
:
3.9
#
python-version: 3.9
-
uses
:
pre-commit/action@v2.0.3
#
- uses: pre-commit/action@v2.0.3
.github/workflows/unit_tests.yml
View file @
9fc9fd02
...
@@ -29,6 +29,8 @@ jobs:
...
@@ -29,6 +29,8 @@ jobs:
cache
:
'
pip'
cache
:
'
pip'
-
name
:
Install dependencies
-
name
:
Install dependencies
run
:
pip install -e '.[linting,testing]' --extra-index-url https://download.pytorch.org/whl/cpu
run
:
pip install -e '.[linting,testing]' --extra-index-url https://download.pytorch.org/whl/cpu
-
name
:
Pre-Commit
uses
:
pre-commit/action@v3.0.0
-
name
:
Lint with pylint
-
name
:
Lint with pylint
run
:
python -m pylint --disable=all -e W0311 --jobs=0 --indent-string=' ' **/*.py
run
:
python -m pylint --disable=all -e W0311 --jobs=0 --indent-string=' ' **/*.py
-
name
:
Lint with flake8
-
name
:
Lint with flake8
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment