Skip to content

Commit 82c589c

Browse files
committed
Cleaned up to follow ruff-format
1 parent 1bd0cde commit 82c589c

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ci:
22
autoupdate_schedule: quarterly
33
skip: [pip-compile]
44
default_language_version:
5-
python: python3.10
5+
python: python3.11
66
repos:
77
- repo: https://github.com/astral-sh/ruff-pre-commit
88
rev: v0.6.9

ca_qc_kirkland/people.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def decode_email(e):
1616
de += chr(int(e[i : i + 2], 16) ^ k)
1717

1818
return de
19+
1920
page = self.lxmlize(COUNCIL_PAGE, "iso-8859-1")
2021

2122
councillors = page.xpath('//table/tbody[not(@id)]/tr/td[@valign="top"]')
@@ -43,7 +44,7 @@ def decode_email(e):
4344
email = decode_email(encrypted_email)
4445

4546
# cloudflare encrypts the email data
46-
email = councillor.xpath('.//div/*/*/@href | .//div/*/@href | .//@href')[0]
47+
email = councillor.xpath(".//div/*/*/@href | .//div/*/@href | .//@href")[0]
4748
decoded_email = decode_email(email.split("#", 1)[1])
4849
p = Person(primary_org="legislature", name=name, district=district, role=role)
4950
p.add_source(COUNCIL_PAGE)

requirements.txt

-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ sqlparse==0.5.1
6969
# via django
7070
text-unidecode==1.3
7171
# via python-slugify
72-
typing-extensions==4.12.2
73-
# via asgiref
7472
unidecode==0.4.14
7573
# via -r requirements.in
7674
urllib3==1.26.20

0 commit comments

Comments
 (0)