Skip to content

Commit

Permalink
Merge branch 'refactor/ruff' of github.com:eddiebergman/openml-python…
Browse files Browse the repository at this point in the history
… into refactor/ruff
  • Loading branch information
eddiebergman committed Jan 7, 2024
2 parents 8d80aa4 + 876f8e4 commit 42b34e7
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,28 +214,32 @@ Before each commit, it will automatically run:
but make sure to make adjustments if it does fail.

If you want to run the pre-commit tests without doing a commit, run:
```bash
$ pre-commit run --all-files
```
```bash
$ make check
```
or on a system without make, like Windows:
```bash
$ pre-commit run --all-files
```
Make sure to do this at least once before your first commit to check your setup works.

Executing a specific unit test can be done by specifying the module, test case, and test.
To obtain a hierarchical list of all tests, run

```bash
$ pytest --collect-only
<Module 'tests/test_datasets/test_dataset.py'>
<UnitTestCase 'OpenMLDatasetTest'>
<TestCaseFunction 'test_dataset_format_constructor'>
<TestCaseFunction 'test_get_data'>
<TestCaseFunction 'test_get_data_rowid_and_ignore_and_target'>
<TestCaseFunction 'test_get_data_with_ignore_attributes'>
<TestCaseFunction 'test_get_data_with_rowid'>
<TestCaseFunction 'test_get_data_with_target'>
<UnitTestCase 'OpenMLDatasetTestOnTestServer'>
<TestCaseFunction 'test_tagging'>
```
```bash
$ pytest --collect-only
<Module 'tests/test_datasets/test_dataset.py'>
<UnitTestCase 'OpenMLDatasetTest'>
<TestCaseFunction 'test_dataset_format_constructor'>
<TestCaseFunction 'test_get_data'>
<TestCaseFunction 'test_get_data_rowid_and_ignore_and_target'>
<TestCaseFunction 'test_get_data_with_ignore_attributes'>
<TestCaseFunction 'test_get_data_with_rowid'>
<TestCaseFunction 'test_get_data_with_target'>
<UnitTestCase 'OpenMLDatasetTestOnTestServer'>
<TestCaseFunction 'test_tagging'>
```

You may then run a specific module, test case, or unit test respectively:
```bash
Expand Down

0 comments on commit 42b34e7

Please sign in to comment.