-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved to poetry, added pre-commit, MIT->GPLv3
- Loading branch information
Showing
6 changed files
with
804 additions
and
81 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,4 @@ | ||
|
||
[flake8] | ||
max-line-length = 88 | ||
exclude = .git,__pycache__,old,build,dist,venv,.venv |
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 |
---|---|---|
|
@@ -112,4 +112,5 @@ venv.bak/ | |
# mypy | ||
.mypy_cache/ | ||
|
||
.rss-parser | ||
.rss-parser | ||
poetry.lock |
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,48 @@ | ||
repos: | ||
# Use pre-commit repo, v3.4.0 | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: "v3.4.0" | ||
hooks: | ||
# Check for files that contain merge conflict strings. | ||
- id: check-merge-conflict | ||
stages: [ commit, push ] | ||
# Simply check whether files parse as valid python. | ||
- id: check-ast | ||
stages: [ commit ] | ||
|
||
# Use locally installed hooks | ||
- repo: local | ||
|
||
hooks: | ||
- id: black | ||
name: black | ||
entry: poetry | ||
args: | ||
- run | ||
- black | ||
language: system | ||
types: [ python ] | ||
stages: [ commit ] | ||
# Black should use the config from the pyproject.toml file | ||
|
||
- id: isort | ||
name: isort | ||
entry: poetry | ||
args: | ||
- run | ||
- isort | ||
language: system | ||
types: [ python ] | ||
stages: [ commit ] | ||
# isort's config is also stored in pyproject.toml | ||
|
||
- id: flake8 | ||
name: flake8 | ||
entry: poetry | ||
args: | ||
- run | ||
- flake8 | ||
language: system | ||
always_run: true | ||
pass_filenames: false | ||
stages: [ push ] |
Oops, something went wrong.