forked from SkalskiP/star-track
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 🚀 add .dockerignore file to exclude unnecessary files from Dock…
…er context chore: 🔧 update GitHub Actions workflows - Add pull_request trigger to dev-star-tracker.yml - Update organizations list in star-tracker.yml feat: 🚀 add .pre-commit-config.yaml for pre-commit hooks configuration chore: 🐍 update Dockerfile to use Python 3.12-slim docs: 📚 fix formatting issues in README.md fix: 🧹 remove trailing spaces in action.yml refactor: ♻️ improve concurrency and add output path configuration in app.py feat: 🚀 add output path and filename environment variables in config.py refactor: ♻️ improve repository fetching and add request timeout in core.py Signed-off-by: Onuralp SEZER <[email protected]>
- Loading branch information
1 parent
9c4ceb0
commit b038551
Showing
13 changed files
with
371 additions
and
124 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,41 @@ | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
data/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
share/python-wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
.python-version | ||
|
||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
|
||
.mypy_cache/ | ||
.dmypy.json | ||
dmypy.json | ||
|
||
.pre-commit-config.yaml | ||
.pre-commit-hooks.yaml |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
ci: | ||
autofix_prs: true | ||
autoupdate_schedule: weekly | ||
autofix_commit_msg: "fix(pre_commit): 🎨 auto format pre-commit hooks" | ||
autoupdate_commit_msg: "chore(pre_commit): ⬆ pre_commit autoupdate" | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
exclude: test/.*\.py | ||
- id: check-yaml | ||
exclude: mkdocs.yml | ||
- id: check-executables-have-shebangs | ||
- id: check-toml | ||
- id: check-case-conflict | ||
- id: check-added-large-files | ||
- id: detect-private-key | ||
- id: pretty-format-json | ||
exclude: demo.ipynb | ||
args: ['--autofix', '--no-sort-keys', '--indent=4'] | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
|
||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.6.7 | ||
hooks: | ||
- id: ruff | ||
args: [--fix, --exit-non-zero-on-fix] | ||
- id: ruff-format | ||
types_or: [ python, pyi, jupyter ] |
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 python:3.9-slim | ||
FROM python:3.12-slim | ||
|
||
COPY startrack/ /startrack/ | ||
COPY requirements.txt . | ||
|
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
"organizations": [ | ||
"roboflow" | ||
] | ||
} | ||
} |
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,121 @@ | ||
[tool.ruff] | ||
target-version = "py312" | ||
|
||
exclude = [ | ||
".bzr", | ||
".direnv", | ||
".eggs", | ||
".git", | ||
".git-rewrite", | ||
".hg", | ||
".mypy_cache", | ||
".nox", | ||
".pants.d", | ||
".pytype", | ||
".ruff_cache", | ||
".svn", | ||
".tox", | ||
".venv", | ||
"__pypackages__", | ||
"_build", | ||
"buck-out", | ||
"build", | ||
"dist", | ||
"node_modules", | ||
"venv", | ||
"yarn-error.log", | ||
"yarn.lock", | ||
"docs", | ||
] | ||
|
||
line-length = 89 | ||
indent-width = 4 | ||
|
||
[tool.ruff.lint] | ||
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default. | ||
select = ["E", "F", "I", "A", "Q", "W","RUF","UP","YTT","NPY","ANN","T","S","Q","N","G","F","E","C","B","A"] | ||
ignore = [] | ||
# Allow autofix for all enabled rules (when `--fix`) is provided. | ||
fixable = [ | ||
"A", | ||
"B", | ||
"C", | ||
"D", | ||
"E", | ||
"F", | ||
"G", | ||
"I", | ||
"N", | ||
"Q", | ||
"S", | ||
"T", | ||
"W", | ||
"ANN", | ||
"ARG", | ||
"BLE", | ||
"COM", | ||
"DJ", | ||
"DTZ", | ||
"EM", | ||
"ERA", | ||
"EXE", | ||
"FBT", | ||
"ICN", | ||
"INP", | ||
"ISC", | ||
"NPY", | ||
"PD", | ||
"PGH", | ||
"PIE", | ||
"PL", | ||
"PT", | ||
"PTH", | ||
"PYI", | ||
"RET", | ||
"RSE", | ||
"RUF", | ||
"SIM", | ||
"SLF", | ||
"TCH", | ||
"TID", | ||
"TRY", | ||
"UP", | ||
"YTT", | ||
] | ||
unfixable = [] | ||
# Allow unused variables when underscore-prefixed. | ||
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" | ||
pylint.max-args = 20 | ||
|
||
[tool.ruff.lint.flake8-quotes] | ||
inline-quotes = "double" | ||
multiline-quotes = "double" | ||
docstring-quotes = "double" | ||
|
||
[tool.ruff.lint.pydocstyle] | ||
convention = "google" | ||
|
||
[tool.ruff.lint.per-file-ignores] | ||
"__init__.py" = ["E402", "F401"] | ||
|
||
[tool.ruff.lint.mccabe] | ||
# Flag errors (`C901`) whenever the complexity level exceeds 5. | ||
max-complexity = 20 | ||
|
||
[tool.ruff.lint.isort] | ||
order-by-type = true | ||
no-sections = false | ||
|
||
[tool.ruff.format] | ||
# Like Black, use double quotes for strings. | ||
quote-style = "double" | ||
docstring-code-format = true | ||
|
||
# Like Black, indent with spaces, rather than tabs. | ||
indent-style = "space" | ||
|
||
# Like Black, respect magic trailing commas. | ||
skip-magic-trailing-comma = false | ||
|
||
# Like Black, automatically detect the appropriate line ending. | ||
line-ending = "auto" |
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,2 +1,2 @@ | ||
pandas | ||
requests | ||
requests |
Oops, something went wrong.