Skip to content

Commit 05edd00

Browse files
authored
[MAINTENANCE] ruff v0.0.253 - enable PYI rules (great-expectations#7243)
1 parent bcc6e85 commit 05edd00

File tree

4 files changed

+17
-15
lines changed

4 files changed

+17
-15
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repos:
1717
hooks:
1818
- id: black-jupyter
1919
- repo: https://github.com/charliermarsh/ruff-pre-commit
20-
rev: 'v0.0.246'
20+
rev: 'v0.0.253'
2121
hooks:
2222
- id: ruff
2323
files: ^(great_expectations|contrib|tasks\.py) # TODO: add tests/ scripts/ etc.

contrib/cli/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ cookiecutter==1.7.3 # Project templating
44
mypy==1.0.0 # Type checker
55
pydantic>=1.0,<2.0 # Needed for mypy plugin
66
pytest>=5.3.5 # Test framework
7-
ruff==0.0.246 # Linting / code style
7+
ruff==0.0.253 # Linting / code style
88
twine==3.7.1 # Packaging
99
wheel==0.37.1 # Packaging

pyproject.toml

+14-12
Original file line numberDiff line numberDiff line change
@@ -199,39 +199,41 @@ warn_untyped_fields = true
199199
target-version = "py37"
200200
line-length = 88
201201
select = [
202-
# https://github.com/charliermarsh/ruff#pyflakes-f
202+
# https://beta.ruff.rs/docs/rules/#pyflakes-f
203203
"F", # Pyflakes
204-
# https://github.com/charliermarsh/ruff#pycodestyle-e-w
204+
# https://beta.ruff.rs/docs/rules/#pycodestyle-e-w
205205
"E", # pycodestyle
206206
"W", # Warning
207-
# https://github.com/charliermarsh/ruff#flake8-comprehensions-c4
208-
# https://github.com/charliermarsh/ruff#mccabe-c90
207+
# https://beta.ruff.rs/docs/rules/#flake8-comprehensions-c4
208+
# https://beta.ruff.rs/docs/rules/#mccabe-c90
209209
"C", # Complexity (mccabe+) & comprehensions
210-
# https://github.com/charliermarsh/ruff#pyupgrade-up
210+
# https://beta.ruff.rs/docs/rules/#pyupgrade-up
211211
"UP", # pyupgrade
212-
# https://github.com/charliermarsh/ruff#isort-i
212+
# https://beta.ruff.rs/docs/rules/#isort-i
213213
"I", # isort
214-
# https://github.com/charliermarsh/ruff#flake8-type-checking-tch
214+
# https://beta.ruff.rs/docs/rules/#flake8-type-checking-tch
215215
"TCH", # flake8-type-checking-tch
216+
# https://beta.ruff.rs/docs/rules/#flake8-pyi-pyi
217+
"PYI", # flake8-pyi - type stub files
216218
]
217219
ignore = [
218-
# https://github.com/charliermarsh/ruff#pyflakes-f
220+
# https://beta.ruff.rs/docs/rules/#pyflakes-f
219221
"F842", # variable annotated but unused # TODO enable
220-
# https://github.com/charliermarsh/ruff#pycodestyle-e-w
222+
# https://beta.ruff.rs/docs/rules/#pycodestyle-e-w
221223
"E501", # line-length # TODO: too many violations
222224
"E402", # module level import not at top of file
223-
# https://github.com/charliermarsh/ruff#flake8-comprehensions-c4
225+
# https://beta.ruff.rs/docs/rules/#flake8-comprehensions-c4
224226
"C400", # TODO enable
225227
"C408", # TODO enable
226228
"C409", # TODO enable
227229
"C413", # TODO enable
228230
"C414", # TODO enable
229231
"C416", # TODO enable
230232
"C417", # TODO enable
231-
# https://github.com/charliermarsh/ruff#pyupgrade-up
233+
# https://beta.ruff.rs/docs/rules/#pyupgrade-up
232234
"UP006", # use-pep585-annotation
233235
"UP007", # use-pep604-annotation
234-
# https://github.com/charliermarsh/ruff#flake8-type-checking-tch
236+
# https://beta.ruff.rs/docs/rules/#flake8-type-checking-tch
235237
# doesn't catch errors or help with circular imports and tedious to apply
236238
"TCH002", # typing-only-third-party-import
237239
# minimal cost for standard lib imports; keep this disabled

reqs/requirements-dev-contrib.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ black[jupyter]==22.3.0
22
invoke>=2.0.0
33
mypy==1.0.0
44
pre-commit>=2.21.0
5-
ruff==0.0.246
5+
ruff==0.0.253

0 commit comments

Comments
 (0)