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
+25-12
Original file line number
Diff line number
Diff line change
@@ -14,28 +14,41 @@ You can use [GitHub issues](https://github.com/mirumee/ariadne-codegen/issues) t
14
14
15
15
## Development setup
16
16
17
-
Ariadne Code Generator is written to support Python 3.9, 3.10and 3.11.
17
+
Ariadne Code Generator is written to support Python 3.9, 3.10, 3.11, 3.12 and 3.13.
18
18
19
-
Codebase is formatted using [black](https://github.com/ambv/black) and [isort](https://github.com/PyCQA/isort), the contents of the `ariadne-codegen` package are annotated with types and validated using [mypy](http://mypy-lang.org/index.html). [Pylint](https://github.com/pylint-dev/pylint) is used to catch errors in code.
19
+
We use [Hatch](https://github.com/pypa/hatch) for project management.
20
20
21
-
Tests are developed using [pytest](https://pytest.org/).
21
+
The codebase is formatted using [ruff](https://github.com/astral-sh/ruff).
22
+
To format the code, use the following command:
23
+
```bash
24
+
hatch fmt
25
+
```
22
26
23
-
Dev requirements can be installed using Pip extras. For example, to install all dependencies for doing local development and running the tests, run `pip install -e .[subscriptions,dev]`.
27
+
The contents of the `ariadne-codegen` package are annotated with types and validated using [mypy](http://mypy-lang.org/index.html). To run type checking with mypy, use:
28
+
```bash
29
+
hatch run types:check
30
+
```
24
31
25
-
We require all changes to be done via pull requests, and to be approved by member-ranked users before merging.
26
32
27
-
All changes should pass these linter checks:
33
+
Tests are developed using [pytest](https://pytest.org/) and are managed with Hatch.
To run all checks (formatting, type checking, and tests), you can use:
43
+
```bash
44
+
hatch run check
45
+
```
46
+
47
+
We require all changes to be done via pull requests, and to be approved by member-ranked users before merging.
48
+
49
+
All changes should pass these linter checks.
50
+
51
+
39
52
## Working on issues
40
53
41
54
We consider all issues which are not assigned to anybody as being available for contributors. The **[help wanted](https://github.com/mirumee/ariadne-codegen/labels/help%20wanted)** label is used to single out issues that we consider easier or higher priority on the list of things that we would like to see.
0 commit comments