style: pre-commit fix for end-of-line-fixer

This commit is contained in:
Dineshkarthik 2022-07-18 20:01:49 +02:00
parent 08d754e5cf
commit 077e0dc943
No known key found for this signature in database
GPG key ID: E256EF0EECD6F201
7 changed files with 19 additions and 14 deletions

View file

@ -17,4 +17,4 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: pre-commit/action@v3.0.0
- uses: pre-commit/action@v3.0.0

View file

@ -28,8 +28,11 @@ repos:
name: mypy
entry: mypy
types: [python]
args: [--no-strict-optional, --ignore-missing-imports]
- repo: local
args: [--ignore-missing-imports]
files: utils/|media_downloader.py
exclude: tests/
- repo: https://github.com/pycqa/pylint
rev: v2.14.5
hooks:
- id: pylint
name: pylint
@ -40,4 +43,6 @@ repos:
"-rn", # Only display messages
"-sn", # Don't display the score
"--rcfile=pylintrc" # Link to your config file
]
]
files: utils/|media_downloader.py
exclude: tests/

View file

@ -179,10 +179,10 @@ Must be one of the following:
- **style**: Changes that do not affect the meaning of the code (white-space, formatting, etc)
- **test**: Additions/updates to tests
- **type**: Type annotations
#### Subject:
Please reference the relevant GitHub issues in your commit message using #1234.
Please reference the relevant GitHub issues in your commit message using #1234.
- a subject line with `< 80` chars.
- summary in present tense.
- not capitalized.
@ -196,4 +196,4 @@ Explain the motivation for the change in the commit message body. This commit me
### Code of Conduct
As a contributor, you can help us keep the community open and inclusive. Please read and follow our [Code of Conduct](https://github.com/Dineshkarthik/telegram_media_downloader/blob/master/CODE_OF_CONDUCT.md).
As a contributor, you can help us keep the community open and inclusive. Please read and follow our [Code of Conduct](https://github.com/Dineshkarthik/telegram_media_downloader/blob/master/CODE_OF_CONDUCT.md).

View file

@ -4,7 +4,7 @@ TEST_ARTIFACTS ?= /tmp/coverage
install:
python3 -m pip install --upgrade pip setuptools
python3 -m pip install -r requirements.txt
python3 -m pip install -r requirements.txt
dev_install: install
python3 -m pip install -r dev-requirements.txt
@ -23,4 +23,4 @@ test:
--cov-report term-missing \
--cov-report html:${TEST_ARTIFACTS} \
--junit-xml=${TEST_ARTIFACTS}/media-downloader.xml \
tests/
tests/

View file

@ -39,21 +39,21 @@ $ git clone https://github.com/Dineshkarthik/telegram_media_downloader.git
$ cd telegram_media_downloader
$ make install
```
For Windows which doesn't have `make` inbuilt
For Windows which doesn't have `make` inbuilt
```sh
$ git clone https://github.com/Dineshkarthik/telegram_media_downloader.git
$ cd telegram_media_downloader
$ pip3 install -r requirements.txt
```
## Configuration
## Configuration
All the configurations are passed to the Telegram Media Downloader via `config.yaml` file.
**Getting your API Keys:**
The very first step requires you to obtain a valid Telegram API key (API id/hash pair):
1. Visit [https://my.telegram.org/apps](https://my.telegram.org/apps) and log in with your Telegram Account.
2. Fill out the form to register a new Telegram application.
2. Fill out the form to register a new Telegram application.
3. Done! The API key consists of two parts: **api_id** and **api_hash**.

View file

@ -10,4 +10,4 @@ coverage:
patch: no
comment:
require_changes: true
require_changes: true

View file

@ -251,7 +251,7 @@ indent-after-paren=4
indent-string=' '
# Maximum number of characters on a single line.
max-line-length=80
max-line-length=90
# Maximum number of lines in a module.
max-module-lines=