Skip to content

Commit 7c54393

Browse files
committed
Remove flake8 and mypy config files
1 parent 19d9f49 commit 7c54393

File tree

5 files changed

+8
-22
lines changed

5 files changed

+8
-22
lines changed

.flake8

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

.github/workflows/CI.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ jobs:
2424
- name: Install RF ${{ matrix.rf-version }}
2525
run: |
2626
pip install -U --pre robotframework==${{ matrix.rf-version }}
27-
- name: Run flake8
27+
- name: Run ruff
2828
run: |
29-
flake8 --config .flake8 src/
29+
ruff check ./src tasks.py
3030
- name: Run balck
3131
run: |
32-
black --target-version py36 --line-length 120 --check src/
32+
black --config pyproject.toml --check src/
3333
- name: Run unit tests
3434
run: |
3535
python utest/run.py

mypy.ini

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

src/robotlibcore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def __get_members(self, component):
8484
if inspect.ismodule(component):
8585
return inspect.getmembers(component)
8686
if inspect.isclass(component):
87-
msg = f"Libraries must be modules or instances, got class {component.__name__} instead."
87+
msg = f"Libraries must be modules or instances, got class '{component.__name__}' instead."
8888
raise TypeError(
8989
msg,
9090
)

utest/test_get_keyword_source.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def lib_path_types(cur_dir):
3939

4040
def test_location_in_main(lib, lib_path):
4141
source = lib.get_keyword_source("keyword_in_main")
42-
assert source == "%s:20" % lib_path
42+
assert source == f"{lib_path}:19"
4343

4444

4545
def test_location_in_class(lib, lib_path_components):
@@ -49,7 +49,7 @@ def test_location_in_class(lib, lib_path_components):
4949

5050
def test_decorator_wrapper(lib_types, lib_path_types):
5151
source = lib_types.get_keyword_source("keyword_wrapped")
52-
assert source == "%s:74" % lib_path_types
52+
assert source == f"{lib_path_types}:73"
5353

5454

5555
def test_location_in_class_custom_keyword_name(lib, lib_path_components):
@@ -66,7 +66,7 @@ def test_no_line_number(lib, lib_path, when):
6666
def test_no_path(lib, when):
6767
when(lib)._DynamicCore__get_keyword_path(Any()).thenReturn(None)
6868
source = lib.get_keyword_source("keyword_in_main")
69-
assert source == ":20"
69+
assert source == ":19"
7070

7171

7272
def test_no_path_and_no_line_number(lib, when):
@@ -78,7 +78,7 @@ def test_no_path_and_no_line_number(lib, when):
7878

7979
def test_def_in_decorator(lib_types, lib_path_types):
8080
source = lib_types.get_keyword_source("keyword_with_def_deco")
81-
assert source == "%s:68" % lib_path_types
81+
assert source == f"{lib_path_types}:67"
8282

8383

8484
def test_error_in_getfile(lib, when):

0 commit comments

Comments
 (0)