Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ruff config for ruff==2.0 #969

Merged
merged 1 commit into from
Feb 21, 2024
Merged

Fix ruff config for ruff==2.0 #969

merged 1 commit into from
Feb 21, 2024

Conversation

nkvuong
Copy link
Contributor

@nkvuong nkvuong commented Feb 21, 2024

Changes

Removes warning from ruff when running make fmt

warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `pyproject.toml`:
  - 'ignore' -> 'lint.ignore'
  - 'flake8-tidy-imports' -> 'lint.flake8-tidy-imports'
  - 'isort' -> 'lint.isort'
  - 'per-file-ignores' -> 'lint.per-file-ignores'

Copy link

codecov bot commented Feb 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4ed2554) 87.51% compared to head (be74efa) 87.51%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #969   +/-   ##
=======================================
  Coverage   87.51%   87.51%           
=======================================
  Files          44       44           
  Lines        5341     5341           
  Branches      954      954           
=======================================
  Hits         4674     4674           
  Misses        452      452           
  Partials      215      215           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@nfx nfx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit

@@ -112,13 +114,13 @@ ignore = [
"EM102",
]

[tool.ruff.isort]
[tool.ruff.lint.isort]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you increase the minimum required ruff version then?

@nfx nfx merged commit 609ab7d into main Feb 21, 2024
6 of 7 checks passed
@nfx nfx deleted the fix/ruff-config branch February 21, 2024 16:09
nfx added a commit that referenced this pull request Feb 21, 2024
* Fixed `AnalysisException` in `crawl_tables` task by ignoring the database that is not found ([#970](#970)).
* Fixed `Unknown: org.apache.hadoop.hive.ql.metadata.HiveException: NoSuchObjectException` in `crawl_grants` task by ignoring the database that is not found ([#967](#967)).
* Fixed ruff config for ruff==2.0 ([#969](#969)).
* Made groups integration tests less flaky ([#965](#965)).
@nfx nfx mentioned this pull request Feb 21, 2024
nfx added a commit that referenced this pull request Feb 21, 2024
* Fixed `AnalysisException` in `crawl_tables` task by ignoring the
database that is not found
([#970](#970)).
* Fixed `Unknown: org.apache.hadoop.hive.ql.metadata.HiveException:
NoSuchObjectException` in `crawl_grants` task by ignoring the database
that is not found
([#967](#967)).
* Fixed ruff config for ruff==2.0
([#969](#969)).
* Made groups integration tests less flaky
([#965](#965)).
dmoore247 pushed a commit that referenced this pull request Mar 23, 2024
## Changes
Removes warning from ruff when running `make fmt`

```
warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `pyproject.toml`:
  - 'ignore' -> 'lint.ignore'
  - 'flake8-tidy-imports' -> 'lint.flake8-tidy-imports'
  - 'isort' -> 'lint.isort'
  - 'per-file-ignores' -> 'lint.per-file-ignores'
```
dmoore247 pushed a commit that referenced this pull request Mar 23, 2024
* Fixed `AnalysisException` in `crawl_tables` task by ignoring the
database that is not found
([#970](#970)).
* Fixed `Unknown: org.apache.hadoop.hive.ql.metadata.HiveException:
NoSuchObjectException` in `crawl_grants` task by ignoring the database
that is not found
([#967](#967)).
* Fixed ruff config for ruff==2.0
([#969](#969)).
* Made groups integration tests less flaky
([#965](#965)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants