You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+28-10Lines changed: 28 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,24 +20,42 @@ and [direnv](https://github.com/direnv/direnv) to automatically activate/deactiv
20
20
21
21
## Dependencies
22
22
23
-
To install this package and its development dependencies, run `make install-dev`
23
+
To install this package and its development dependencies, run `make install-dev`.
24
24
25
-
## Formatting
25
+
## Code checking
26
26
27
-
We use `ruff` to automatically format the code to a common format. To run the formatting, just run `make format`.
27
+
To run all our code checking tools together, just run `make check-code`.
28
28
29
-
## Linting, type-checking and unit testing
29
+
###Linting
30
30
31
-
We use `ruff` for linting, `mypy` for type checking and `pytest` for unit testing. To run these tools, just run `make check-code`.
31
+
We use [ruff](https://docs.astral.sh/ruff/) for linting to to analyze the code for potential issues and enforce
32
+
uniformed code style. See the `pyproject.toml` for its configuration. To run the linting, just run `make lint`.
33
+
34
+
### Formatting
35
+
36
+
We use [ruff](https://docs.astral.sh/ruff/) for automated code formatting. It formats the code to follow uniformed
37
+
code style and addresses auto-fixable linting issues. See the `pyproject.toml` for its configuration. To run
38
+
the formatting, just run `make format`.
39
+
40
+
### Type checking
41
+
42
+
We use [mypy](https://mypy.readthedocs.io/en/stable/) for type checking. See the `mypy.ini` for its configuration.
43
+
To run the type checking, just run `make type-check`.
44
+
45
+
### Unit tests
46
+
47
+
We use [pytest](https://docs.pytest.org/) as a testing framework with many plugins. See the `pyproject.toml` for
48
+
both its configuration and the list of installed plugins. To run unit tests execute `make unit-tests`. To run unit
49
+
tests with HTML coverage report execute `make unit-tests-cov`.
32
50
33
51
## Integration tests
34
52
35
-
We have integration tests which send API requests using the API client to the Apify Platform.
36
-
To run these tests, you need to set the `APIFY_TEST_USER_API_TOKEN` environment variable to the API token of the Apify user you want to use for the tests,
37
-
and then start them with `make integration-tests`.
53
+
We have integration tests which build and run actors using the Python SDK on the Apify Platform. To run these tests,
54
+
you need to set the `APIFY_TEST_USER_API_TOKEN` environment variable to the API token of the Apify user you want to
55
+
use for the tests, and then start them with `make integration-tests`.
38
56
39
-
If you want to run the integration tests on a different environment than the main Apify Platform,
40
-
you need to set the `APIFY_INTEGRATION_TESTS_API_URL` environment variable to the right URL to the Apify API you want to use.
57
+
If you want to run the integration tests on a different environment than the main Apify Platform, you need to set
58
+
the `APIFY_INTEGRATION_TESTS_API_URL` environment variable to the right URL to the Apify API you want to use.
0 commit comments