Skip to content

Commit f3aa45e

Browse files
authored
Merge pull request #448 from pbs-data-solutions/ruff
Bump ruff 0.7.4 -> 0.8.0 and add RUF022 and RUF023
2 parents e6335ec + 19c4cbc commit f3aa45e

File tree

4 files changed

+159
-146
lines changed

4 files changed

+159
-146
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repos:
1313
hooks:
1414
- id: mypy
1515
- repo: https://github.com/astral-sh/ruff-pre-commit
16-
rev: v0.7.4
16+
rev: v0.8.0
1717
hooks:
1818
- id: ruff
1919
args: [--fix, --exit-non-zero-on-fix]

prelude_parser/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
__version__ = VERSION
1616

1717
__all__ = [
18+
"SiteNative",
19+
"SubjectNative",
20+
"UserNative",
1821
"parse_site_native_file",
1922
"parse_site_native_string",
2023
"parse_subject_native_file",
2124
"parse_subject_native_string",
22-
"parse_user_native_file",
23-
"parse_user_native_string",
2425
"parse_to_classes",
2526
"parse_to_dict",
26-
"SiteNative",
27-
"SubjectNative",
28-
"UserNative",
27+
"parse_user_native_file",
28+
"parse_user_native_string",
2929
]

pyproject.toml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ dev = [
3838
"pandas-stubs==2.2.3.241009",
3939
"pytest==8.3.3",
4040
"pytest-cov==6.0.0",
41-
"ruff==0.7.1",
41+
"ruff==0.8.0",
4242
"tomli==2.0.2; python_version<'3.11'",
4343
]
4444

@@ -65,7 +65,18 @@ target-version = "py39"
6565
fix = true
6666

6767
[tool.ruff.lint]
68-
select=["E", "B", "F", "UP", "I001", "T201", "T203"]
68+
select=[
69+
"E", # pycodestyle
70+
"B", # flake8-bugbear
71+
"W", # Warning
72+
"F", # pyflakes
73+
"UP", # pyupgrade
74+
"I001", # unsorted-imports
75+
"T201", # Don't allow print
76+
"T203", # Don't allow pprint
77+
"RUF022", # Unsorted __all__
78+
"RUF023", # Unforted __slots__
79+
]
6980
ignore=[
7081
# Recommened ignores by ruff when using formatter
7182
"E501",

0 commit comments

Comments
 (0)