Skip to content

Commit e6ea793

Browse files
authored
Remove scripts except pull-static (#1519)
* Remove scripts except `pull-static` * Add default pytest options
1 parent 3eb3dee commit e6ea793

File tree

7 files changed

+7
-34
lines changed

7 files changed

+7
-34
lines changed

.github/pull_request_template.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
**PR Checklist:**
88

9-
- [ ] Pre-commit hooks and tests pass (run `scripts/test`)
9+
- [ ] Pre-commit hooks pass (run `pre-commit run --all-files`)
10+
- [ ] Tests pass (run `pytest`)
1011
- [ ] Documentation has been updated to reflect changes, if applicable
1112
- [ ] This PR maintains or improves overall codebase code coverage.
1213
- [ ] Changes are added to the [CHANGELOG](https://github.com/stac-utils/pystac/blob/main/CHANGELOG.md). See [the docs](https://pystac.readthedocs.io/en/latest/contributing.html#changelog) for information about adding to the changelog.

.github/workflows/continuous-integration.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
run: uv run pytest tests
5050
- name: Test
5151
if: runner.os != 'Windows'
52-
run: uv run scripts/test
52+
run: uv run pytest tests --block-network --record-mode=none
5353

5454
coverage:
5555
name: coverage

docs/contributing.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ To run the tests and generate the coverage report:
3333

3434
.. code-block:: bash
3535
36-
$ pytest -v -s --block-network --cov pystac --cov-report term-missing
36+
$ pytest -v -s --cov pystac --cov-report term-missing
3737
3838
To view the coverage report, you can run
3939
`coverage report` (to view the report in the terminal) or `coverage html` (to generate
@@ -100,7 +100,7 @@ and report any improvements or regressions.
100100

101101
.. code-block:: bash
102102
103-
scripts/bench
103+
asv continuous --split -e --interleave-rounds --factor 1.25 main HEAD
104104
105105
The benchmark suite takes a while to run, and will report any significant
106106
changes to standard output. For example, here's a benchmark comparison between

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ lint.select = ["E", "F", "I"]
105105

106106
[tool.pytest.ini_options]
107107
filterwarnings = ["error"]
108+
addopts = "--block-network --record-mode=none"
108109

109110
[tool.setuptools.packages.find]
110111
include = ["pystac*"]

scripts/bench

-11
This file was deleted.

scripts/pull-static

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
VERSION="1.5.0" #v1.5.0-beta.2 should work or no??
5+
VERSION="1.5.0"
66
SRC="https://cdn.jsdelivr.net/npm/@radiantearth/stac-fields@$VERSION/fields-normalized.json"
77
HERE=$(dirname "$0")
88
DEST=$(dirname "$HERE")/pystac/static/fields-normalized.json

scripts/test

-18
This file was deleted.

0 commit comments

Comments
 (0)