Skip to content

Commit 9d81f97

Browse files
jbristowGitHub Enterprise
authored andcommitted
Merge pull request #1 from jbristow/master
feat: a github plugin
2 parents 06823f7 + 59e657b commit 9d81f97

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+4730
-1
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,7 @@ cython_debug/
157157
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158158
# and can be added to the global gitignore or merged into this file. For a more nuclear
159159
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160-
#.idea/
160+
.idea/
161+
**/coverage.json
162+
**/coverage.xml
163+
**/htmlcov/*

Makefile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
.PHONY: clean
2+
clean: clean-pyc
3+
find . \( -name "coverage.xml" -or -name ".coverage" \) -delete
4+
find . -name htmlcov -exec rm -rf {} +
5+
6+
.PHONY: clean-pyc
7+
clean-pyc:
8+
find . -name '*.pyc' -exec rm -rf {} +
9+
find . -name '*.pyo' -exec rm -rf {} +
10+
find . -name '*~' -exec rm -rf {} +
11+
find . -name '__pycache__' -exec rm -rf {} +
12+
13+
.PHONY: run
14+
run:
15+
poetry install
16+
poetry run python main.py
17+
18+
.PHONY: fmt
19+
fmt:
20+
poetry run isort nodestream_github tests
21+
poetry run black nodestream_github tests
22+
23+
.PHONY: lint
24+
lint: fmt
25+
poetry run ruff check nodestream_github tests --fix
26+
27+
.PHONY: test
28+
test:
29+
poetry run pytest
30+

nodestream_github/__init__.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from .interpretations import (
2+
RepositoryRelationshipInterpretation,
3+
UserRelationshipInterpretation,
4+
)
5+
from .orgs import GithubOrganizationsExtractor
6+
from .plugin import GithubPlugin
7+
from .repos import GithubReposExtractor
8+
from .teams import GithubTeamsExtractor
9+
from .users import GithubUserExtractor
10+
11+
__all__ = (
12+
"GithubOrganizationsExtractor",
13+
"GithubPlugin",
14+
"GithubReposExtractor",
15+
"GithubTeamsExtractor",
16+
"GithubUserExtractor",
17+
"RepositoryRelationshipInterpretation",
18+
"UserRelationshipInterpretation",
19+
)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from .githubclient import GithubRestApiClient, RateLimitedError
2+
3+
__all__ = [
4+
"GithubRestApiClient",
5+
"RateLimitedError",
6+
]

0 commit comments

Comments
 (0)