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

Adding ruff to dependencies as well as removing some rules #153

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
pip install .[test]
- name: Test with pytest
run: |
python -m pytest
Expand Down
25 changes: 22 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ dependencies=[
[project.optional-dependencies]
dev = [
"pytest",
"ruff",
"ruff-lsp",
]
test = [
"pytest",
]

[project.scripts]
Expand Down Expand Up @@ -63,6 +68,23 @@ src = ["", "tests"]
select = ["ALL"]

[tool.ruff.lint.per-file-ignores]
"*" = [
# ANN001: Missing type annotation for public function
"ANN101",

# ANN204: Missing return type annotation for __init__
"ANN204",

# D100: Missing docstring in public module
"D100",

# D107: Missing docstring in __init__
"D107",

# ANN001: Missing type annotation for public function
"ANN101",
]

"tests/*" = [
# S101: Check for assert
"S101",
Expand All @@ -73,9 +95,6 @@ select = ["ALL"]
# ANN201: Missing return type annotation for public function
"ANN201",

# D100: Missing docstring in public module
"D100",

# D103: Missing docstring in public function
"D103",

Expand Down
Loading