Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
3419b62
ファイル検索部分を作成中 refs #1
DogFortune Sep 30, 2025
d0aa779
ファイルからリンクを抽出するところまで作成
DogFortune Sep 30, 2025
b2b3b23
リンクチェック機構を実装 refs #1
DogFortune Oct 1, 2025
c7b4e61
表示オプションの設定 refs #1
DogFortune Oct 1, 2025
fee2b6e
urlのテストが抜けていたので追加 refs #1
DogFortune Oct 1, 2025
5b9767a
add github actions
DogFortune Oct 1, 2025
712ee19
fix
DogFortune Oct 1, 2025
86bb3fc
DockerイメージキャッシュのActionを変更 refs #1
DogFortune Oct 1, 2025
86bec68
ファイルリストからリンクを抽出する部分を改修中
DogFortune Oct 1, 2025
301db45
リンクの抽出と重複チェックを同時に実施 refs #1
DogFortune Oct 1, 2025
c7f3683
例外周りの改修 refs #1
DogFortune Oct 1, 2025
fc55de7
URLErrorのケース追加
DogFortune Oct 1, 2025
fe28d58
行の読み込み方式の改修
DogFortune Oct 2, 2025
202c423
正しく重複判定ができているかのテスト追加 refs #1
DogFortune Oct 2, 2025
cf846ad
リンクリストを使ってまとめてリンクをチェックする部分を実装 refs #1
DogFortune Oct 3, 2025
4066281
link -> url refs #1
DogFortune Oct 3, 2025
648be81
結果をboolからStrEnumに変更 refs #1
DogFortune Oct 3, 2025
e057568
リンクチェック結果の内容確認テストの実装 refs #1
DogFortune Oct 10, 2025
df193bd
Create LICENSE
DogFortune Oct 11, 2025
8727dd3
コード移動 refs #1
DogFortune Oct 12, 2025
6dbcaf5
データクラス移行中 refs #1
DogFortune Oct 12, 2025
671192c
カスタムアクション用ファイル作成中 refs #3
DogFortune Oct 14, 2025
7c992cd
レポート用クラスを使って結果を出す方針に refs #1
DogFortune Oct 14, 2025
2e95961
パラメーターを環境変数でも受け取れるように refs #3
DogFortune Oct 15, 2025
7b247e0
Merge branch 'issue/3-action' into issue/1-base
DogFortune Oct 15, 2025
1003f05
フォーマット形式テスト作成中 refs 1
DogFortune Oct 15, 2025
ac9a58b
出力フォーマットのテスト作成 refs #1
DogFortune Oct 15, 2025
5f4793f
テスト整理 refs #1
DogFortune Oct 15, 2025
b8b4ae6
モジュールの名前変更 refs #1
DogFortune Oct 15, 2025
748d8d4
結果出力まで記述 refs #1
DogFortune Oct 15, 2025
fa346e8
出力テスト実装中
DogFortune Nov 1, 2025
a564f5d
モックサーバー起動チェックを追加
DogFortune Nov 10, 2025
07f6b6a
Merge branch 'issue/1-base' of github.com:DogFortune/LinkWatch into i…
DogFortune Nov 10, 2025
d6aa01c
名前をmainからappに変更
DogFortune Nov 11, 2025
8b7bab6
リンクの抽出処理の改善中
DogFortune Nov 11, 2025
e23b634
URL抽出方法を改修
DogFortune Nov 12, 2025
6e98203
tqdmによる進捗表記を追加
DogFortune Nov 12, 2025
3162d8c
レポーター改修中
DogFortune Nov 12, 2025
6d981d5
レポーター改修
DogFortune Nov 12, 2025
40f8d81
自作クラスを含んだJSONの書き出し機能実装
DogFortune Nov 12, 2025
5b93641
オブジェクトとしてJSONを出力するためのデータクラスとカスタムエンコーダーの追加
DogFortune Nov 12, 2025
c3023bf
フォーマット指定ではなくjsonを出力するか否かで指定する方式に
DogFortune Nov 12, 2025
f89b6b3
helpを追加
DogFortune Nov 13, 2025
f4f45f3
JSON出力機能の実装
DogFortune Nov 13, 2025
08da211
JSON出力動作確認
DogFortune Nov 13, 2025
789a3ae
パッケージとして実行できるように調整中
DogFortune Nov 13, 2025
cd1c793
GitHub Actionsによる実行は一旦廃止
DogFortune Nov 13, 2025
7b160d4
update pyproject.toml
DogFortune Nov 13, 2025
5047e5c
リファクタ中
DogFortune Nov 13, 2025
129fbbb
Delete Submodule
DogFortune Nov 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
venv
.pytest_cache
*.pyc
5 changes: 5 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[flake8]
exclude = .git,__pycache__,.pytest_cache,docs/source/conf.py,old,build,dist,tests,tmp,.aws-sam,.venv
max-complexity = 15
max-line-length = 120
show-source = True
77 changes: 77 additions & 0 deletions .github/workflows/lint-test-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: test-lint-format

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
checks: write
pull-requests: write
jobs:
lint:
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: "pipenv"
- name: install pipenv
run: |
python -m pip install --upgrade pip
python -m pip install pipenv
- name: install packages
run: pipenv sync --dev
- name: run lint
run: pipenv run lint
format:
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: "pipenv"
- name: install pipenv
run: |
python -m pip install --upgrade pip
python -m pip install pipenv
- name: install packages
run: pipenv sync --dev
- name: run format
run: pipenv run format
test:
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: "pipenv"
- name: install pipenv
run: |
python -m pip install --upgrade pip
python -m pip install pipenv
- name: install packages
run: pipenv sync --dev
- name: Cache Docker images.
uses: AndreKurait/docker-cache@0.6.0
with:
key: ${{ hashFiles('docker-compose.yml') }}
- name: start docker compose
run: docker compose up -d
- name: run test
run: pipenv run pytest -q --junit-xml pytest.xml
continue-on-error: true
- name: Publish Test Report
uses: mikepenz/action-junit-report@v5
if: success() || failure()
with:
report_paths: "pytest.xml"
216 changes: 216 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[codz]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py.cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
# Pipfile.lock

# UV
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# uv.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
# poetry.lock
# poetry.toml

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
# pdm.lock
# pdm.toml
.pdm-python
.pdm-build/

# pixi
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
# pixi.lock
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
# in the .venv directory. It is recommended not to include this directory in version control.
.pixi

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# Redis
*.rdb
*.aof
*.pid

# RabbitMQ
mnesia/
rabbitmq/
rabbitmq-data/

# ActiveMQ
activemq-data/

# SageMath parsed files
*.sage.py

# Environments
.env
.envrc
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
# .idea/

# Abstra
# Abstra is an AI-powered process automation framework.
# Ignore directories containing user credentials, local state, and settings.
# Learn more at https://abstra.io/docs
.abstra/

# Visual Studio Code
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
# and can be added to the global gitignore or merged into this file. However, if you prefer,
# you could uncomment the following to ignore the entire vscode folder
# .vscode/

# Ruff stuff:
.ruff_cache/

# PyPI configuration file
.pypirc

# Marimo
marimo/_static/
marimo/_lsp/
__marimo__/

# Streamlit
.streamlit/secrets.toml
Empty file added .gitmodules
Empty file.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2025 DogFortune

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
21 changes: 21 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
tqdm = "*"
dataclasses-json = "*"

[dev-packages]
pytest = "*"
flake8 = "*"
black = "*"
pytest-randomly = "*"

[requires]
python_version = "3.13"

[scripts]
lint = "flake8 -v"
format = "black ./src/ -v"
Loading