Skip to content

Commit

Permalink
add lint config and simplify linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-wolbeck committed Dec 31, 2024
1 parent acf6b27 commit 59877ed
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,9 @@ repos:
language: system
files: ^ngboost
entry: flake8
- id: pylint-ngboost
name: pylint on ngboost*
- id: pylint
name: pylint (ngboost + tests)
types: [file, python]
language: system
files: ^ngboost
entry: pylint --disable=invalid-name,no-member,missing-docstring,no-self-argument,arguments-differ
- id: pylint-tests
name: pylint on tests*
language: system
files: ^tests
entry: pylint --disable=invalid-name,missing-docstring,too-many-function-args,unused-variable,fixme
files: ^(ngboost|tests)/
entry: pylint --rcfile=.pylintrc
11 changes: 11 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[MASTER]
disable=
invalid-name,
no-member,
missing-docstring,
no-self-argument,
arguments-differ,
too-many-function-args,
unused-variable,
fixme,
too-many-positional-arguments

0 comments on commit 59877ed

Please sign in to comment.