Skip to content

Commit

Permalink
Fix pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
j-waters authored and edeng23 committed Mar 13, 2021
1 parent a340c29 commit bcebb65
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 21 deletions.
40 changes: 20 additions & 20 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ repos:
hooks:
- id: check-merge-conflict # Check for files that contain merge conflict strings.
- id: trailing-whitespace # Trims trailing whitespace.
args: [--markdown-linebreak-ext=md]
args: ['--markdown-linebreak-ext=md']
- id: mixed-line-ending # Replaces or checks mixed line ending.
args: [--fix=lf]
args: ['--fix=lf']
- id: end-of-file-fixer # Makes sure files end in a newline and only a newline.
- id: check-merge-conflict # Check for files that contain merge conflict strings.
- id: check-ast # Simply check whether files parse as valid python.
Expand All @@ -26,25 +26,25 @@ repos:
hooks:
- id: pyupgrade
name: Rewrite Code to be Py3.6+
args: [--py36-plus]
args: ['--py36-plus']

- repo: https://github.com/asottile/reorder_python_imports
rev: v2.4.0
- repo: https://github.com/pycqa/isort
rev: 5.6.3
hooks:
- id: reorder-python-imports
args: [--py3-plus]
- id: isort
args: ['--profile', 'black', '--line-length', '120']

- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
args: [-l 100]
args: ['-l', '120']

- repo: https://github.com/asottile/blacken-docs
rev: v1.7.0
hooks:
- id: blacken-docs
args: [--skip-errors]
args: ['--skip-errors']
files: ^docs/.*\.rst
additional_dependencies: [black==20.8b1]

Expand All @@ -53,7 +53,7 @@ repos:
hooks:
- id: populate-pylint-requirements
files: ^(dev-)?requirements\.txt$
args: [requirements.txt, dev-requirements.txt]
args: ['requirements.txt', 'dev-requirements.txt']

- repo: https://github.com/pre-commit/mirrors-pylint
rev: v2.4.4
Expand All @@ -62,14 +62,14 @@ repos:
name: PyLint
args: [--output-format=parseable, --rcfile=.pylintrc]
additional_dependencies:
- Flask
- apprise
- eventlet
- flask-cors
- flask-socketio
- gunicorn
- Flask==1.1.2
- apprise==0.9.1
- eventlet==0.30.2
- flask-cors==3.0.10
- flask-socketio==5.0.1
- gunicorn==20.0.4
- pylint-sqlalchemy
- python-binance>=0.3
- python-socketio[client]
- schedule
- sqlalchemy
- python-binance==0.7.9
- python-socketio[client]==5.0.4
- schedule==1.0.0
- sqlalchemy==1.3.23
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ indent-after-paren=4
indent-string=' '

# Maximum number of characters on a single line.
max-line-length=100
max-line-length=120

# Maximum number of lines in a module.
max-module-lines=1000
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ if you only want to start the sqlitebrowser
docker-compose up -d sqlitebrowser
```

## Developing

To make sure your code is properly formatted before making a pull request,
remember to install [pre-commit](https://pre-commit.com/):

```shell
pip install pre-commit
pre-commit install
```

## Support the Project

<a href="https://www.buymeacoffee.com/edeng" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>
Expand Down

0 comments on commit bcebb65

Please sign in to comment.