Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Merge branch 'release/v4.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
jabesq committed Jun 20, 2020
2 parents 55870eb + b6da77a commit b3cc680
Show file tree
Hide file tree
Showing 33 changed files with 2,079 additions and 2,475 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
omit = */__main__.py
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ pyatmo.egg-info/
*.pyc
.DS_Store

archive/
access.token
cov.xml

venv/
.venv

Expand Down Expand Up @@ -214,10 +218,6 @@ dmypy.json

### Code ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# End of https://www.gitignore.io/api/code

Expand Down
17 changes: 11 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,22 @@ exclude: ^(fixtures/)
repos:
- repo: local
hooks:
- id: isort
name: isort
language: system
entry: pipenv run isort
types: [python]
exclude: tests/
- id: black
name: black
language: system
entry: pipenv run black
types: [python]
- id: pylint
name: pylint
language: system
entry: pipenv run pylint
types: [python]
- id: flake8
name: flake8
language: system
Expand All @@ -21,9 +32,3 @@ repos:
entry: pipenv run mypy
types: [python]
exclude: tests/
- id: isort
name: isort
language: system
entry: pipenv run isort
types: [python]
exclude: tests/
19 changes: 3 additions & 16 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -1,32 +1,20 @@
[MESSAGES CONTROL]
# Reasons disabled:
# locally-disabled - it spams too much
# duplicate-code - unavoidable
# cyclic-import - doesn't test if both import on load
# abstract-class-little-used - prevents from setting right foundation
# unused-argument - generic callbacks and setup methods create a lot of warnings
# global-statement - used for the on-demand requirement installation
# redefined-variable-type - this is Python, we're duck typing!
# too-many-* - are not enforced for the sake of readability
# too-few-* - same as too-many-*
# abstract-method - with intro of async there are always methods missing
# inconsistent-return-statements - doesn't handle raise
# not-an-iterable - https://github.com/PyCQA/pylint/issues/2311
# unnecessary-pass - readability for functions which only contain pass
disable=
abstract-class-little-used,
abstract-method,
cyclic-import,
duplicate-code,
global-statement,
inconsistent-return-statements,
invalid-name,
line-too-long,
locally-disabled,
missing-docstring,
not-an-iterable,
not-context-manager,
redefined-variable-type,
too-few-public-methods,
too-many-arguments,
too-many-branches,
Expand All @@ -36,10 +24,9 @@ disable=
too-many-public-methods,
too-many-return-statements,
too-many-statements,
unnecessary-pass,
unused-argument,
C0330,
W1203
abstract-method,
not-an-iterable,
format,

[REPORTS]
reports=no
Expand Down
Loading

0 comments on commit b3cc680

Please sign in to comment.