-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55bf8f8
commit 7c260ba
Showing
5 changed files
with
78 additions
and
27 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 |
---|---|---|
|
@@ -11,6 +11,6 @@ | |
|
||
tests: | ||
script: | ||
- pip3 install ruff . | ||
- pip3 install ruff | ||
- ruff format --check src | ||
- ruff src | ||
- ruff check src |
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 |
---|---|---|
@@ -1,32 +1,33 @@ | ||
DOC_OUTPUT_DIR ?= doc/_build | ||
|
||
.PHONY: doc tests | ||
|
||
clean: | ||
@rm -rf build dist | ||
@rm -rf build dist .ruff_cache | ||
@rm -rf src/*.egg-info | ||
@find src \( -name '*.py[co]' -o -name '__pycache__' \) -delete | ||
@rm -rf doc/_build/* | ||
|
||
upgrade-precommit: | ||
python -m pre_commit autoupdate | ||
|
||
install-dev: clean | ||
python -m pip install -e '.[dev'] | ||
git init | ||
python -m pre_commit install | ||
python -m pre_commit autoupdate | ||
$(MAKE) upgrade-precommit | ||
|
||
tests: | ||
python -m pytest | ||
|
||
qa: | ||
python -m ruff src | ||
python -m ruff check src | ||
python -m ruff format --check src | ||
|
||
qa-fix: | ||
python -m ruff --fix src | ||
python -m ruff check --fix src | ||
python -m ruff format src | ||
|
||
doc: | ||
python -m sphinx.cmd.build -b html doc ${DOC_OUTPUT_DIR} | ||
python -m sphinx.cmd.build -b html doc doc/_build | ||
|
||
wheel: | ||
python -m pip wheel -w dist --no-deps . |
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 |
---|---|---|
|
@@ -19,7 +19,12 @@ description = 'Reloader service' | |
authors = [{ name = 'Net-ng' }, { email = '[email protected]' }] | ||
license = { file = 'LICENSE.txt' } | ||
requires-python = '>=3.7' | ||
dependencies = ['watchdog', 'webob', 'nagare-server'] | ||
dependencies = [ | ||
'watchdog', | ||
'webob', | ||
"legacy-cgi ; python_full_version>='3.13.0a1'", | ||
'nagare-server' | ||
] | ||
|
||
[project.readme] | ||
file = 'README.rst' | ||
|
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