| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b3d1c26 commit 237b97c
11 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,6 +40,4 @@ jobs: | |||
| 40 | 40 | - name: Check twine readme rendering | |
| 41 | 41 | env: | |
| 42 | 42 | TOXENV: twine-check | |
| 43 | - run: | | ||
| 44 | - python3 setup.py sdist bdist_wheel | ||
| 45 | - tox | ||
| 43 | + run: tox | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,17 +6,13 @@ repos: | |||
| 6 | 6 | rev: 20.8b1 | |
| 7 | 7 | hooks: | |
| 8 | 8 | - id: black | |
| 9 | - | ||
| 10 | 9 | - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook | |
| 11 | 10 | rev: v5.0.0 | |
| 12 | 11 | hooks: | |
| 13 | 12 | - id: commitlint | |
| 14 | 13 | additional_dependencies: ['@commitlint/config-conventional'] | |
| 15 | 14 | 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 | ||
| 19 | 17 | hooks: | |
| 20 | - - id: commitlint-travis | ||
| 21 | - additional_dependencies: ['@commitlint/config-conventional'] | ||
| 22 | - stages: [manual] | ||
| 18 | + - id: isort | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,4 +10,4 @@ formats: | |||
| 10 | 10 | python: | |
| 11 | 11 | version: 3.8 | |
| 12 | 12 | install: | |
| 13 | - - requirements: rtd-requirements.txt | ||
| 13 | + - requirements: requirements-docs.txt | ||
| Original file line number | Diff line number | Diff 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 | ||
| 3 | 3 | recursive-include tests * | |
| 4 | 4 | recursive-include docs *j2 *.py *.rst api/*.rst Makefile make.bat | |
| 5 | - recursive-include tests/unit/data * | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -144,21 +144,22 @@ To format your code according to our guidelines before committing, run: | |||
| 144 | 144 | Running unit tests | |
| 145 | 145 | ------------------ | |
| 146 | 146 | ||
| 147 | - Before submitting a pull request make sure that the tests still succeed with | ||
| 148 | - your change. Unit tests and functional tests run using the travis service and | ||
| 149 | - passing tests are mandatory to get merge requests accepted. | ||
| 147 | + Before submitting a pull request make sure that the tests and lint checks still succeed with | ||
| 148 | + your change. Unit tests and functional tests run in GitHub Actions and | ||
| 149 | + passing checks are mandatory to get merge requests accepted. | ||
| 150 | 150 | ||
| 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 | ||
| 154 | 152 | <https://github.com/getsentry/responses/>`_. | |
| 155 | - An example for new tests can be found in tests/objects/test_runner.py | ||
| 153 | + An example can be found in ``tests/unit/objects/test_runner.py`` | ||
| 156 | 154 | ||
| 157 | - You need to install ``tox`` to run unit tests and documentation builds locally: | ||
| 155 | + You need to install ``tox`` (``pip3 install tox``) to run tests and lint checks locally: | ||
| 158 | 156 | ||
| 159 | 157 | .. code-block:: bash | |
| 160 | 158 | ||
| 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: | ||
| 162 | 163 | tox | |
| 163 | 164 | ||
| 164 | 165 | # run tests in one environment only: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,8 @@ | |||
| 1 | + [tool.isort] | ||
| 2 | + profile = "black" | ||
| 3 | + multi_line_output = 3 | ||
| 4 | + order_by_type = false | ||
| 5 | + | ||
| 1 | 6 | [tool.semantic_release] | |
| 2 | 7 | version_variable = "gitlab/__version__.py:__version__" | |
| 3 | 8 | commit_subject = "chore: release v{version}" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | -r requirements.txt | |
| 2 | - -r test-requirements.txt | ||
| 2 | + -r requirements-test.txt | ||
| 3 | 3 | docker-compose==1.29.2 # prevent inconsistent .env behavior from system install | |
| 4 | 4 | pytest-console-scripts | |
| 5 | 5 | pytest-docker | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,4 @@ | |||
| 1 | + black | ||
| 2 | + flake8 | ||
| 3 | + isort | ||
| 4 | + mypy | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,6 @@ | |||
| 1 | 1 | coverage | |
| 2 | 2 | httmock | |
| 3 | 3 | mock | |
| 4 | - mypy | ||
| 5 | 4 | pytest | |
| 6 | 5 | pytest-cov | |
| 7 | 6 | responses | |
| Back | FazBrowse Home | New Git URL |
0 commit comments