Skip to content

Commit bc950cd

Browse files
committed
Move ruff and black inclusions/exclusions in pyproject.toml
1 parent 5141089 commit bc950cd

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ typing:
1313
poetry run mypy
1414

1515
format:
16-
poetry run black --check sqlalchemy_bind_manager tests
16+
poetry run black --check .
1717

1818
lint:
1919
poetry run ruff .
2020

2121
format-fix:
22-
poetry run black sqlalchemy_bind_manager tests
22+
poetry run black .
2323

2424
lint-fix:
2525
poetry run ruff . --fix

pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,21 @@ plugins = "pydantic.mypy"
7474

7575
[tool.ruff]
7676
select = ["E", "F", "I"]
77+
extend-exclude = ["docs"]
7778

7879
[tool.ruff.per-file-ignores]
7980
"__init__.py" = ["F401"]
8081
"repository.py" = ["F401"]
82+
83+
[tool.black]
84+
files = '''
85+
(
86+
sqlalchemy_bind_manager
87+
tests
88+
)
89+
'''
90+
extend-exclude = '''
91+
(
92+
/docs
93+
)
94+
'''

0 commit comments

Comments
 (0)