Skip to content

Commit

Permalink
added ruff linting spec and sample test
Browse files Browse the repository at this point in the history
  • Loading branch information
xann16 committed Apr 10, 2024
1 parent 9cf0f1a commit 4b09438
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,23 @@ exclude = [
"src_tmp"
]

[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
ignore = [ "E111", "E114", "E117" ]

[tool.hatch.envs.default]
dependencies = [
"coverage[toml]>=6.5",
Expand Down
2 changes: 2 additions & 0 deletions tests/test_sample.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_sample_should_be_ok() -> None:
assert True

0 comments on commit 4b09438

Please sign in to comment.