Skip to content

Commit acae639

Browse files
authored
Merge pull request #483 from radish-bdd/feature/switch-to-ruff
Switch to ruff
2 parents 8ad95aa + 2ba7b90 commit acae639

File tree

94 files changed

+354
-461
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+354
-461
lines changed

.github/CONTRIBUTING.md

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,34 +30,22 @@ We are very happy to receive Pull Requests considering:
3030

3131
## Development
3232

33-
radish uses the *extra* requirements feature of `setuptools` to specify all
34-
the dependencies needed to develop radish.
35-
A set of extra requirements can be installed with the following `pip` syntax:
33+
radish can be installed as [editable install](https://setuptools.pypa.io/en/latest/userguide/development_mode.html).
3634

3735
```bash
38-
pip install -e '.[<extras>]'
36+
pip install -r requirements-dev.txt
37+
pip install -e .
3938
```
4039

41-
whereas `<extras>` can be one of:
42-
43-
* `tests`: all dependencies required to run the radish unit and integration tests
44-
* `docs`: all dependencies required to build the radish documentation
45-
* `dev`: all dependencies required to develop radish. This group includes the `tests` and `docs` dependencies. [recommended]
46-
4740
### tox: linting, testing, docs & more
4841

4942
radish uses [`tox`](https://tox.readthedocs.io/en/latest/) to automate development tasks,
5043
like linting, testing, building the docs and creating the changelog.
5144

5245
The radish tox setup provides the following automated tasks:
5346

54-
* `lint`: formats and lints the code base using [`black`](https://black.readthedocs.io/en/stable/) and [`flake8`](https://flake8.readthedocs.io/en/stable/).
55-
* `manifest`: checks if the `MANIFEST.in` content is consistent with the repository content.
56-
* `py<ver>`: runs unit tests with the Python Version from `<ver>`.
57-
* `integration`: runs integration tests.
58-
* `coverage-report`: generates a coverage report. Make sure that you've run some tests before.
59-
* `docs`: builds the sphinx documentation.
60-
* `news`: generates the ChangeLog from the newsfragments in `changelog/`. Use `towncrier --draft` directly to generate a ChangeLog draft.
47+
* `lint`: formats and lints the code base using [`ruff`](https://docs.astral.sh/ruff/)
48+
* `py<ver>`: runs tests with the Python Version from `<ver>`.
6149

6250
Before commiting your changes, it's a good practice to run `tox`.
6351
So that it'll run all the preconfigured tasks.

.github/workflows/main.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,19 @@ jobs:
1212
with:
1313
python-version: 3.13
1414
- name: Setup and install tools
15-
run: |
16-
python -m pip install --upgrade black
17-
- name: black format check
18-
run: black --check --line-length 120 radish/ tests/ setup.py
15+
run: python -m pip install ruff
16+
- name: ruff format check
17+
run: ruff format --check
18+
- name: ruff check
19+
run: ruff check
1920

2021
test:
2122
strategy:
2223
fail-fast: false
2324
max-parallel: 8
2425
matrix:
2526
python-version: [3.7, 3.13]
26-
os: [ubuntu-latest, windows-latest, macOS-latest]
27+
os: [ubuntu-22.04, windows-latest, macos-latest]
2728
exclude:
2829
- os: macos-latest
2930
python-version: 3.7

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
# python virtualenv
1111
env*
12+
.env*
1213

1314
# python tox files
1415
.tox

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
radish was originally created in September 2012 by Timo Furrer
22
and was completely refactored in June 2015.
3+
Maintained since 2020 by Fliiiix.
34

45
Here is an inevitably incomplete list of MUCH-APPRECIATED CONTRIBUTORS --
56
people who have submitted patches, reported bugs, added translations, helped

CONTRIBUTING.md

Lines changed: 0 additions & 48 deletions
This file was deleted.

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ include *.rst
44
include *.txt
55
include AUTHORS
66
include LICENSE
7-
include pylintrc
87
include tox.ini
98
recursive-include doc *.png
109
recursive-include doc *.py

0 commit comments

Comments
 (0)