mirror of
https://github.com/Dineshkarthik/telegram_media_downloader.git
synced 2024-09-20 07:16:32 +08:00
style: pre-commit fix for end-of-line-fixer
This commit is contained in:
parent
08d754e5cf
commit
077e0dc943
2
.github/workflows/code-checks.yml
vendored
2
.github/workflows/code-checks.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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/
|
||||
|
|
|
@ -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).
|
||||
|
|
4
Makefile
4
Makefile
|
@ -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/
|
||||
|
|
|
@ -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**.
|
||||
|
||||
|
||||
|
|
|
@ -10,4 +10,4 @@ coverage:
|
|||
patch: no
|
||||
|
||||
comment:
|
||||
require_changes: true
|
||||
require_changes: true
|
||||
|
|
Loading…
Reference in a new issue