Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit237b97c

Browse files
nejchJohnVillalovos
authored andcommitted
chore: clean up tox, pre-commit and requirements
1 parentb3d1c26 commit237b97c

11 files changed

+46
-51
lines changed

‎.github/workflows/docs.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,4 @@ jobs:
4040
-name:Check twine readme rendering
4141
env:
4242
TOXENV:twine-check
43-
run:|
44-
python3 setup.py sdist bdist_wheel
45-
tox
43+
run:tox

‎.pre-commit-config.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,13 @@ repos:
66
rev:20.8b1
77
hooks:
88
-id:black
9-
109
-repo:https://github.com/alessandrojcm/commitlint-pre-commit-hook
1110
rev:v5.0.0
1211
hooks:
1312
-id:commitlint
1413
additional_dependencies:['@commitlint/config-conventional']
1514
stages:[commit-msg]
16-
17-
-repo:https://github.com/alessandrojcm/commitlint-pre-commit-hook
18-
rev:v5.0.0
15+
-repo:https://github.com/pycqa/isort
16+
rev:5.8.0
1917
hooks:
20-
-id:commitlint-travis
21-
additional_dependencies:['@commitlint/config-conventional']
22-
stages:[manual]
18+
-id:isort

‎.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ formats:
1010
python:
1111
version:3.8
1212
install:
13-
-requirements:rtd-requirements.txt
13+
-requirements:requirements-docs.txt

‎MANIFEST.in

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
include COPYING AUTHORS ChangeLog.rst RELEASE_NOTES.rst requirements.txt test-requirements.txt rtd-requirements.txt
2-
include tox.ini .travis.yml
1+
include COPYING AUTHORS ChangeLog.rst RELEASE_NOTES.rst requirements*.txt
2+
include tox.ini
33
recursive-include tests *
44
recursive-include docs *j2 *.py *.rst api/*.rst Makefile make.bat
5-
recursive-include tests/unit/data *

‎README.rst

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -144,21 +144,22 @@ To format your code according to our guidelines before committing, run:
144144
Running unit tests
145145
------------------
146146

147-
Before submitting a pull request make sure that the tests still succeed with
148-
your change. Unit tests and functional tests runusing the travis service and
149-
passingtests are mandatory to get merge requests accepted.
147+
Before submitting a pull request make sure that the testsand lint checksstill succeed with
148+
your change. Unit tests and functional tests runin GitHub Actions and
149+
passingchecks are mandatory to get merge requests accepted.
150150

151-
We're currently in a restructing phase for the unit tests. If you're changing existing
152-
tests, feel free to keep the current format. Otherwise please write new tests with pytest and
153-
using `responses
151+
Please write new unit tests with pytest and using `responses
154152
<https://github.com/getsentry/responses/>`_.
155-
An examplefor new testscan be found in tests/objects/test_runner.py
153+
An example can be found in``tests/unit/objects/test_runner.py``
156154

157-
You need to install ``tox`` to rununittests anddocumentation builds locally:
155+
You need to install ``tox``(``pip3 install tox``)to run tests andlint checks locally:
158156

159157
..code-block::bash
160158
161-
# run the unit tests for all supported python3 versions, and the pep8 tests:
159+
# run unit tests using your installed python3, and all lint checks:
160+
tox -s
161+
162+
# run unit tests for all supported python3 versions, and all lint checks:
162163
tox
163164
164165
# run tests in one environment only:

‎pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
[tool.isort]
2+
profile ="black"
3+
multi_line_output =3
4+
order_by_type =false
5+
16
[tool.semantic_release]
27
version_variable ="gitlab/__version__.py:__version__"
38
commit_subject ="chore: release v{version}"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-r requirements.txt
2-
-rtest-requirements.txt
2+
-r requirements-test.txt
33
docker-compose==1.29.2 # prevent inconsistent .env behavior from system install
44
pytest-console-scripts
55
pytest-docker
File renamed without changes.

‎requirements-lint.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
black
2+
flake8
3+
isort
4+
mypy
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
coverage
22
httmock
33
mock
4-
mypy
54
pytest
65
pytest-cov
76
responses

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp