Skip to content

Commit

Permalink
Update pre-commit-config and run it through all files anew
Browse files Browse the repository at this point in the history
  • Loading branch information
hhursev committed Feb 19, 2022
1 parent f8c752c commit d7a0bff
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
9 changes: 5 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
exclude: 'tests/test_data/'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
rev: v4.1.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://gitlab.com/pycqa/flake8.git
rev: 3.8.3
rev: 3.9.2
hooks:
- id: flake8
additional_dependencies: [flake8-use-fstring]
- repo: https://github.com/pycqa/isort
rev: 5.7.0
rev: 5.10.1
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/psf/black
rev: 19.3b0
rev: 22.1.0
hooks:
- id: black
5 changes: 3 additions & 2 deletions generate.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# generate generates a new recipe scraper.
import ast
import requests
import sys

from recipe_scrapers._utils import get_host_name
import requests

from recipe_scrapers._abstract import HEADERS
from recipe_scrapers._utils import get_host_name

template_class_name = "Template"
template_host_name = "example.com"
Expand Down
2 changes: 1 addition & 1 deletion recipe_scrapers/eatingwell.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from ._abstract import AbstractScraper
from ._utils import normalize_string, get_minutes, get_yields
from ._utils import get_minutes, get_yields, normalize_string


class EatingWell(AbstractScraper):
Expand Down
2 changes: 1 addition & 1 deletion recipe_scrapers/nihhealthyeating.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from ._abstract import AbstractScraper
from ._utils import get_minutes, get_yields, normalize_string
from ._exceptions import ElementNotFoundInHtml
from ._utils import get_minutes, get_yields, normalize_string


class NIHHealthyEating(AbstractScraper):
Expand Down
6 changes: 3 additions & 3 deletions recipe_scrapers/valdemarsro.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import re

from ._abstract import AbstractScraper
from ._utils import normalize_string
from ._exceptions import ElementNotFoundInHtml

import re
from ._utils import normalize_string


class Valdemarsro(AbstractScraper):
Expand Down

0 comments on commit d7a0bff

Please sign in to comment.