Skip to content

Commit

Permalink
Updated to follow ruff-formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
samJMA committed Nov 6, 2024
1 parent ca587f3 commit 539a9de
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ci:
autoupdate_schedule: quarterly
skip: [pip-compile]
default_language_version:
python: python3.10
python: python3.11
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
Expand Down
6 changes: 5 additions & 1 deletion ca_qc_montreal_est/people.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
from utils import CanadianScraper

COUNCIL_PAGE = "http://ville.montreal-est.qc.ca/vie-democratique/conseil-municipal/"


class MontrealEstPersonScraper(CanadianScraper):
def scrape(self):
page = self.lxmlize(COUNCIL_PAGE)
councillors = page.xpath('//div[contains (@class, "membreimg text-center membres-conseil")]//div//div[@class="col-lg-6"]')
councillors = page.xpath(
'//div[contains (@class, "membreimg text-center membres-conseil")]//div//div[@class="col-lg-6"]'
)
assert len(councillors), "No councillors found"
for councillor in councillors:
name = councillor.xpath('.//div[@class="bg-trans-gris"]/span/text()')[0]
Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ sqlparse==0.5.1
# via django
text-unidecode==1.3
# via python-slugify
typing-extensions==4.12.2
# via asgiref
unidecode==0.4.14
# via -r requirements.in
urllib3==1.26.20
Expand Down

0 comments on commit 539a9de

Please sign in to comment.