Skip to content

Commit

Permalink
Merge pull request #18 from alexandrainst/test
Browse files Browse the repository at this point in the history
Move owner
  • Loading branch information
oliverkinch authored Jul 11, 2024
2 parents 25844b5 + 50df3cb commit 0651f13
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
pull_request:
branches:
- master
- main

jobs:
lint:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: website

# Build the documentation whenever there are new commits on master
# Build the documentation whenever there are new commits on main
on:
push:
branches:
- master
- main

# Security: restrict permissions for CI jobs.
permissions:
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ find an issue to work on, you are welcome to open a PR with a fix.
### Commit your update

Commit the changes once you are happy with them. See [Atom's contributing
guide](https://github.com/atom/atom/blob/master/CONTRIBUTING.md#git-commit-messages) to
guide](https://github.com/atom/atom/blob/main/CONTRIBUTING.md#git-commit-messages) to
know how to use emoji for commit messages.

Once your changes are ready, don't forget to
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<a href="https://github.com/alexandrainst/domsdatabasen"><img src="gfx/alexandra_logo.png" width="239" height="175" align="right" /></a>
# Domsdatabasen

Scraping og processering af [domsdatabasen](https://domsdatabasen.dk/#).
Scraping og processering af sager fra [Domsdatabasen](https://domsdatabasen.dk/#).

Hver enkelt dom kan tilgås via https://domsdatabasen.dk/#sag/\<nummer\>, hvor \<nummer\> er mellem 1 og 3821 (pr. 11-10-2023).

Datasættet ligger i en processeret udgave på [Huggingface](https://huggingface.co/datasets/oliverkinch/domsdatabasen).
Datasættet ligger i en processeret udgave på [Huggingface](https://huggingface.co/datasets/alexandrainst/domsdatabasen).

## Scraping af sager
Se `src/scripts/scrape.py`.
Expand All @@ -18,10 +18,10 @@ Se `src/scripts/finalize.py`.

______________________________________________________________________
[![Documentation](https://img.shields.io/badge/docs-passing-green)](https://alexandrainst.github.io/domsdatabasen/domsdatabasen.html)
[![License](https://img.shields.io/github/license/oliverkinch/domsdatabasen)](https://github.com/alexandrainst/domsdatabasen/blob/master/LICENSE)
[![LastCommit](https://img.shields.io/github/last-commit/oliverkinch/domsdatabasen)](https://github.com/alexandrainst/domsdatabasen/commits/master)
[![Code Coverage](https://img.shields.io/badge/Coverage-100%25-brightgreen.svg)](https://github.com/alexandrainst/domsdatabasen/tree/master/tests)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg)](https://github.com/alexandrainst/domsdatabasen/blob/master/CODE_OF_CONDUCT.md)
[![License](https://img.shields.io/github/license/alexandrainst/domsdatabasen)](https://github.com/alexandrainst/domsdatabasen/blob/main/LICENSE)
[![LastCommit](https://img.shields.io/github/last-commit/alexandrainst/domsdatabasen)](https://github.com/alexandrainst/domsdatabasen/commits/main)
[![Code Coverage](https://img.shields.io/badge/Coverage-100%25-brightgreen.svg)](https://github.com/alexandrainst/domsdatabasen/tree/main/tests)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg)](https://github.com/alexandrainst/domsdatabasen/blob/main/CODE_OF_CONDUCT.md)


Developers:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "domsdatabasen"
description = "Scraper and PDF text processor for domsdatabasen.dk"
version = "0.2.0"
version = "0.1.4"
authors = [
"Oliver Kinch <[email protected]>",
]
Expand Down
3 changes: 3 additions & 0 deletions src/domsdatabasen/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
"""__init__.py file for the domsdatabasen package."""
from .dataset_builder import DatasetBuilder
from .processor import Processor
from .scraper import Scraper
2 changes: 1 addition & 1 deletion src/scripts/finalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


import hydra
from domsdatabasen.dataset_builder import DatasetBuilder
from domsdatabasen import DatasetBuilder
from omegaconf import DictConfig


Expand Down
2 changes: 1 addition & 1 deletion src/scripts/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import logging

import hydra
from domsdatabasen.processor import Processor
from domsdatabasen import Processor
from omegaconf import DictConfig

logger = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import logging

import hydra
from domsdatabasen.scraper import Scraper
from domsdatabasen import Scraper
from omegaconf import DictConfig

logger = logging.getLogger(__name__)
Expand Down

0 comments on commit 0651f13

Please sign in to comment.