GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: clean up tox, pre-commit and requirements · python-gitlab/python-gitlab@237b97c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • docs.yml
  • .pre-commit-config.yaml
  • .readthedocs.yml
  • MANIFEST.in
  • README.rst
  • pyproject.toml
  • requirements-docker.txt
  • requirements-docs.txt
  • requirements-lint.txt
  • requirements-test.txt
  • tox.ini
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/docs.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/docs.yml
+1-3Lines 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
Collapse file

‎.pre-commit-config.yaml‎

Copy file name to clipboardExpand all lines: .pre-commit-config.yaml
+3-7Lines 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
Collapse file

‎.readthedocs.yml‎

Copy file name to clipboardExpand all lines: .readthedocs.yml
+1-1Lines 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
Collapse file

‎MANIFEST.in‎

Copy file name to clipboard
+2-3Lines 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 *
Collapse file

‎README.rst‎

Copy file name to clipboardExpand all lines: README.rst
+10-9Lines changed: 10 additions & 9 deletions
  • Display the source diff
  • Display the rich diff
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 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.
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 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``
156154

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:
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:
Collapse file

‎pyproject.toml‎

Copy file name to clipboardExpand all lines: pyproject.toml
+5Lines 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}"
Collapse file

‎docker-requirements.txt‎ ‎requirements-docker.txt‎docker-requirements.txt renamed to requirements-docker.txt

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-r requirements.txt
2-
-r test-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
Collapse file

‎rtd-requirements.txt‎ ‎requirements-docs.txt‎rtd-requirements.txt renamed to requirements-docs.txt

Copy file name to clipboard
File renamed without changes.
Collapse file

‎requirements-lint.txt‎

Copy file name to clipboard
+4Lines 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
Collapse file

‎test-requirements.txt‎ ‎requirements-test.txt‎test-requirements.txt renamed to requirements-test.txt

Copy file name to clipboard
-1Lines 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 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.