Skip to content

Commit

Permalink
Merge pull request #1160 from carlosgmartin:move_pylintrc_config_to_p…
Browse files Browse the repository at this point in the history
…yproject_toml

PiperOrigin-RevId: 722963722
  • Loading branch information
OptaxDev committed Feb 4, 2025
2 parents b51d9a8 + caf75a0 commit 8cb6a0e
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 408 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ jobs:
- name: Lint module files with pylint
run: |
PYLINT_ARGS="-efail -wfail -cfail -rfail"
python3 -m pylint --rcfile=.pylintrc $(find optax -name '*.py' | grep -v 'test.py' | xargs) -d E1102 || pylint-exit $PYLINT_ARGS $?
python3 -m pylint $(find optax -name '*.py' | grep -v 'test.py' | xargs) -d E1102 || pylint-exit $PYLINT_ARGS $?
- name: Lint test files with pylint
run: |
PYLINT_ARGS="-efail -wfail -cfail -rfail"
python3 -m pylint --rcfile=.pylintrc $(find optax -name '*_test.py' | xargs) -d W0212,E1102 || pylint-exit $PYLINT_ARGS $?
python3 -m pylint $(find optax -name '*_test.py' | xargs) -d W0212,E1102 || pylint-exit $PYLINT_ARGS $?
ruff-lint:
name: "Lint check with ruff"
runs-on: "ubuntu-latest"
Expand Down
Loading

0 comments on commit 8cb6a0e

Please sign in to comment.