Skip to content

Commit

Permalink
Maintenance (#9)
Browse files Browse the repository at this point in the history
* Add more ruff rules
* Upgrade packages
  • Loading branch information
aliavni authored Jun 10, 2024
1 parent 21f093b commit 7093146
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ show_missing = true

[tool.bandit]
exclude_dirs = ["tests"]

[tool.ruff.lint]
extend-select = ["I"]
3 changes: 2 additions & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
-r requirements.txt

pre-commit==3.7.0
ipython==8.25.0
pre-commit==3.7.1
pytest==8.1.1
pytest-cov==5.0.0
2 changes: 1 addition & 1 deletion scrapers/common/base_item.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass
from datetime import datetime, UTC
from datetime import UTC, datetime


@dataclass(kw_only=True)
Expand Down
1 change: 0 additions & 1 deletion scrapers/fifty_a/fifty_a/items.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from dataclasses import dataclass

from typing import List

from scrapers.common.base_item import BaseItem
Expand Down
4 changes: 2 additions & 2 deletions scrapers/fifty_a/fifty_a/spiders/officer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import List, Optional, Dict, Any, Tuple
from typing import Any, Dict, List, Optional, Tuple

from scrapy.spiders import CrawlSpider, Rule
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule

from scrapers.common.parse import parse_string_to_number
from scrapers.fifty_a.fifty_a.items import OfficerItem
Expand Down
1 change: 0 additions & 1 deletion tests/fifty_a/fifty_a/spiders/test_officer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from scrapy.http import HtmlResponse

from scrapers.fifty_a.fifty_a.spiders.officer import OfficerSpider

from tests.fifty_a.fifty_a.spiders.officer_page import officer_1

mock_response = HtmlResponse(url="dummy", body=officer_1)
Expand Down

0 comments on commit 7093146

Please sign in to comment.