-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from dpriskorn/switch_to_missing_in_last_updated
Switch to using the "missing in" property instead
- Loading branch information
Showing
24 changed files
with
977 additions
and
597 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,34 @@ | ||
name: lint_python | ||
on: | ||
push: | ||
branches: ["master"] | ||
pull_request: | ||
branches: ["master"] | ||
jobs: | ||
ruff: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: pip install --user ruff | ||
- run: ruff --format=github --target-version=py37 . | ||
|
||
lint_python: | ||
needs: ruff | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install poetry | ||
run: pipx install poetry | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.x | ||
cache: 'poetry' | ||
- run: pip install --upgrade pip wheel | ||
- run: poetry install --with=dev | ||
- run: poetry run black --check . | ||
- run: poetry run codespell src/ tests/ *.md *.py # --ignore-words-list="" --skip="*.css,*.js,*.lock" | ||
- run: mkdir --parents --verbose .mypy_cache | ||
- run: poetry run mypy --ignore-missing-imports --install-types --non-interactive . | ||
- run: poetry run safety check | ||
- run: cp config.sample.py config.py | ||
- run: poetry run pytest . |
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
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from src.enrich_hiking_trails import EnrichHikingTrails | ||
from src.models.enrich_hiking_trails import EnrichHikingTrails | ||
|
||
eht = EnrichHikingTrails() | ||
eht.add_osm_property_to_items() |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
[tool.poetry] | ||
name = "hiking-trail-matcher" | ||
version = "0.1.0" | ||
description = "" | ||
authors = ["Your Name <[email protected]>"] | ||
description = "Script that helps link together hiking trails in Wikidata and OpenStreetMap based on user validation that they are the same." | ||
authors = ["Dennis Priskorn"] | ||
license = "GPLv3+" | ||
readme = "README.md" | ||
packages = [{include = "hiking_trail_matcher"}] | ||
# packages = [{include = "app.py"}] | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.10,<3.13" | ||
|
@@ -15,6 +15,7 @@ rich = "^13.3.1" | |
questionary = "^1.10.0" | ||
python-dateutil = "^2.8.2" | ||
wikibaseintegrator = "^0.12.3" | ||
pydash = "^7.0.4" | ||
|
||
|
||
[tool.poetry.group.dev.dependencies] | ||
|
@@ -28,6 +29,10 @@ mypy = "^1.0.0" | |
pre-commit = "^3.0.4" | ||
pytest = "^7.2.1" | ||
pyupgrade = "^3.3.1" | ||
types-python-dateutil = "^2.8.19.13" | ||
types-requests = "^2.31.0.1" | ||
ruff = "^0.0.278" | ||
safety = "^2.3.5" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
|
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
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,14 @@ | ||
class SummaryError(BaseException): | ||
pass | ||
|
||
|
||
class MissingInformationError(BaseException): | ||
pass | ||
|
||
|
||
class DebugExit(BaseException): | ||
pass | ||
|
||
|
||
class NoItemError(BaseException): | ||
pass |
Empty file.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
class Subroute(BaseModel): | ||
name: str = "" | ||
id: int | ||
ref: str = "" | ||
ref: str = "" |
Oops, something went wrong.