Skip to content

Commit

Permalink
CLN: tune linting settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrivenaes committed Jan 18, 2021
1 parent 2629113 commit 49d5f0d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# to disable hooks: SKIP=pylint git commit ...
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
Expand All @@ -14,3 +15,14 @@ repos:
rev: 3.8.3
hooks:
- id: flake8
- repo: https://github.com/pycqa/pydocstyle
rev: 5.1.1
hooks:
- id: pydocstyle
files: ^src/xtgeo/plot
exclude: _.*\.py
- repo: https://github.com/pycqa/pylint
rev: pylint-2.6.0
hooks:
- id: pylint
files: ^src/xtgeo/plot
5 changes: 3 additions & 2 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ max-line-length=88
max-module-lines=3000

[DESIGN]
max-attributes=25
max-attributes=30
max-args=20
max-locals=30
max-branches=15
Expand All @@ -39,4 +39,5 @@ disable=
useless-object-inheritance,
import-outside-toplevel,
import-error,
no-name-in-module
no-name-in-module,
raise-missing-from
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ ignore = E402, W503, E203, C901

[pydocstyle]
convention = google
match = (?!(test_|_)).*\.py

[aliases]
test = pytest


[options]
setup_requires =
setuptools_scm
Expand Down

0 comments on commit 49d5f0d

Please sign in to comment.