Skip to content

Commit

Permalink
Cleanup lint and travis builds (#12)
Browse files Browse the repository at this point in the history
* Only build master and tagged versions

* Use setup.cfg for pylint config
  • Loading branch information
drewyh committed Apr 26, 2020
1 parent 221ce36 commit 971993a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
12 changes: 0 additions & 12 deletions .pylintrc

This file was deleted.

4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ python:
- "3.8"
install: pip install tox-travis
script: tox
branches:
only:
- master
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
deploy:
provider: pypi
on:
Expand Down
13 changes: 13 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,16 @@ ignore=E203,W503
# D413: Missing blank line after last section
add_ignore = D413
convention = google

[pylint.MASTER]
disable = C0330, W0511

[pylint.DESIGN]
# Maximum number of arguments for function / method.
max-args=10

# Minimum number of public methods for a class (see R0903).
min-public-methods=1

# Maximum number of instance attributes
max-attributes=12
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ commands =
black --check ambient
pycodestyle ambient
pydocstyle ambient
pylint setup.cfg ambient
pylint --rcfile setup.cfg ambient
mypy --ignore-missing-imports --disallow-untyped-defs ambient

[testenv:docs]
Expand Down

0 comments on commit 971993a

Please sign in to comment.