forked from constverum/ProxyBroker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request constverum#4 from afunTW/master
WIP: ADD: using pre-commit for code quality
- Loading branch information
Showing
30 changed files
with
848 additions
and
289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[settings] | ||
known_third_party = aiodns,aiohttp,alabaster,cachetools,maxminddb,pytest,setuptools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
default_language_version: | ||
python: python3.6 | ||
fail_fast: true | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
args: | ||
- environment.yml | ||
- .pre-commit-config.yaml | ||
- readthedocs.yml | ||
- .travis.yml | ||
- id: check-merge-conflict | ||
- id: flake8 | ||
args: [--config=setup.cfg, --ignore=E501] | ||
- repo: https://github.com/psf/black | ||
rev: stable | ||
hooks: | ||
- id: black | ||
name: black | ||
language_version: python3.6 | ||
description: "Black: The uncompromising Python code formatter" | ||
entry: black | ||
require_serial: true | ||
args: | ||
- -v | ||
- -l 88 | ||
- repo: https://github.com/asottile/seed-isort-config | ||
rev: v2.1.0 | ||
hooks: | ||
- id: seed-isort-config | ||
- repo: https://github.com/pre-commit/mirrors-isort | ||
rev: v4.3.21 | ||
hooks: | ||
- id: isort | ||
args: | ||
- -rc | ||
- repo: https://github.com/PyCQA/pydocstyle | ||
rev: 5.0.2 | ||
hooks: | ||
- id: pydocstyle | ||
args: [--select=D105] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[[source]] | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
[packages] | ||
aiohttp = ">=3.5.4" | ||
aiodns = ">=2.0.0" | ||
attrs = "==19.1.0" | ||
maxminddb = ">=1.4.1" | ||
pre-commit = "*" | ||
black = "*" | ||
"flake8" = ">=3.7" | ||
isort = ">=4.3" | ||
pytest = ">=4.3" | ||
pytest-asyncio = ">=0.10" | ||
pytest-runner = ">=4.4" | ||
pytest-isort = ">=0.3" | ||
"pytest-flake8" = ">=1.0" | ||
pytest-mock = ">=1.10.1" | ||
cachetools = "*" | ||
|
||
[dev-packages] | ||
|
||
[requires] | ||
python_version = "3.6" |
Oops, something went wrong.