Skip to content

Commit

Permalink
Update base for Update lint rules; Migrate groupnorm commit on "[Migr…
Browse files Browse the repository at this point in the history
…ation][DO NOT MERGE] Support for multi output pattern matching"

Source PR https://github.com/microsoft/onnx-rewriter/pull/288

Co-authored-by: Xavier Dupré <xadupreusers.noreply.github.com>
Co-authored-by: Ti-Tai Wang <titaiwangmicrosoft.com>

[ghstack-poisoned]
  • Loading branch information
BowenBao committed Apr 4, 2024
1 parent 63fc4ee commit 9641ac6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,13 @@ ignore = [
line-length = 95
ignore-init-module-imports = true

[tool.ruff.lint.flake8-tidy-imports.banned-api]
"pathlib".msg = "Using pathlib can impact performance. Use os.path instead"

[tool.ruff.per-file-ignores]
"__init__.py" = ["TID252"] # Allow relative imports in init files
"**/{examples,tests,docs,tools,utils}/*" = ["TID251"] # pathlib is allowed in supporting code
"**/*_test.py" = ["TID251"] # pathlib is allowed in tests

[tool.ruff.flake8-tidy-imports]
# Disallow all relative imports.
Expand Down

0 comments on commit 9641ac6

Please sign in to comment.