Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
quiver-frontend-local
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
subugoe
OCR-D
quiver-frontend-local
Commits
4db837e3
Commit
4db837e3
authored
5 years ago
by
Konstantin Baierer
Browse files
Options
Downloads
Patches
Plain Diff
record whether repo is official or not
parent
de8447fb
No related branches found
No related tags found
No related merge requests found
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
kwalitee/cli.py
+5
-1
5 additions, 1 deletion
kwalitee/cli.py
kwalitee/config.yml
+23
-16
23 additions, 16 deletions
kwalitee/config.yml
kwalitee/repo.py
+3
-1
3 additions, 1 deletion
kwalitee/repo.py
repos.json
+572
-24
572 additions, 24 deletions
repos.json
requirements.txt
+1
-1
1 addition, 1 deletion
requirements.txt
with
604 additions
and
43 deletions
kwalitee/cli.py
+
5
−
1
View file @
4db837e3
...
...
@@ -21,7 +21,11 @@ class CliCtx():
def
__init__
(
self
,
config_file
):
with
open
(
config_file
,
'
r
'
)
as
f_config_file
:
self
.
config
=
safe_load
(
f_config_file
.
read
())
self
.
repos
=
[
Repo
(
self
.
config
,
url
)
for
url
in
self
.
config
[
'
repolist
'
]]
self
.
repos
=
[]
for
repo_desc
in
self
.
config
[
'
repolist
'
]:
url
=
repo_desc
[
'
url
'
]
official
=
repo_desc
.
get
(
'
official
'
,
False
)
self
.
repos
.
append
(
Repo
(
self
.
config
,
url
,
official
))
pass_ctx
=
click
.
make_pass_decorator
(
CliCtx
)
@click.group
()
...
...
This diff is collapsed.
Click to expand it.
kwalitee/config.yml
+
23
−
16
View file @
4db837e3
...
...
@@ -2,19 +2,26 @@
repodir
:
/data/ocrd_all
# repos to clone and process
repolist
:
-
https://github.com/ASVLeipzig/cor-asv-ann
-
https://github.com/ASVLeipzig/cor-asv-fst
-
https://github.com/OCR-D/ocrd_calamari
-
https://github.com/OCR-D/ocrd_im6convert
-
https://github.com/OCR-D/ocrd_keraslm
-
https://github.com/OCR-D/ocrd_kraken
-
https://github.com/OCR-D/ocrd_ocropy
-
https://github.com/OCR-D/ocrd_olena
-
https://github.com/OCR-D/ocrd_segment
-
https://github.com/OCR-D/ocrd_tesserocr
-
https://github.com/cisocrgroup/ocrd_cis
-
https://github.com/mjenckel/LAYoutERkennung
-
https://github.com/ocr-d-modul-2-segmentierung/segmentation-runner
-
https://github.com/qurator-spk/dinglehopper
-
https://github.com/qurator-spk/pixelwise_segmentation_SBB
-
https://github.com/seuretm/ocrd_typegroups_classifier
-
url
:
https://github.com/ASVLeipzig/cor-asv-ann
official
:
true
-
url
:
https://github.com/ASVLeipzig/cor-asv-fst
official
:
true
-
url
:
https://github.com/OCR-D/ocrd_calamari
-
url
:
https://github.com/OCR-D/ocrd_im6convert
-
url
:
https://github.com/OCR-D/ocrd_keraslm
-
url
:
https://github.com/OCR-D/ocrd_kraken
-
url
:
https://github.com/OCR-D/ocrd_ocropy
-
url
:
https://github.com/OCR-D/ocrd_olena
-
url
:
https://github.com/OCR-D/ocrd_segment
-
url
:
https://github.com/OCR-D/ocrd_tesserocr
official
:
true
-
url
:
https://github.com/cisocrgroup/ocrd_cis
official
:
true
-
url
:
https://github.com/mjenckel/LAYoutERkennung
official
:
true
-
url
:
https://github.com/ocr-d-modul-2-segmentierung/segmentation-runner
official
:
true
-
url
:
https://github.com/qurator-spk/dinglehopper
-
url
:
https://github.com/qurator-spk/pixelwise_segmentation_SBB
-
url
:
https://github.com/seuretm/ocrd_typegroups_classifier
official
:
true
This diff is collapsed.
Click to expand it.
kwalitee/repo.py
+
3
−
1
View file @
4db837e3
...
...
@@ -10,10 +10,11 @@ LOG = getLogger('kwalitee.repo')
class
Repo
():
def
__init__
(
self
,
config
,
url
):
def
__init__
(
self
,
config
,
url
,
official
=
False
):
self
.
url
=
url
self
.
config
=
config
self
.
name
=
Path
(
url
).
name
self
.
official
=
official
self
.
path
=
Path
(
self
.
config
[
'
repodir
'
],
self
.
name
)
def
__str__
(
self
):
...
...
@@ -73,6 +74,7 @@ class Repo():
def
to_json
(
self
):
desc
=
{}
desc
[
'
url
'
]
=
self
.
url
desc
[
'
official
'
]
=
self
.
official
desc
[
'
org_plus_name
'
]
=
'
/
'
.
join
(
self
.
url
.
split
(
'
/
'
)[
-
2
:])
desc
[
'
name
'
]
=
self
.
name
desc
[
'
files
'
]
=
self
.
get_file_contents
()
...
...
This diff is collapsed.
Click to expand it.
repos.json
+
572
−
24
View file @
4db837e3
This diff is collapsed.
Click to expand it.
requirements.txt
+
1
−
1
View file @
4db837e3
click
>=7
ocrd
>=
1
.0.0
ocrd
>=
2
.0.0
a1
pyyaml
requests
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment