Skip to content

Commit

Permalink
remove unnecessary linters
Browse files Browse the repository at this point in the history
  • Loading branch information
dbatten5 committed Nov 9, 2023
1 parent ddc00c9 commit d57c432
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 32 deletions.
6 changes: 0 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ repos:
language: system
types: [python]
require_serial: true
- id: reorder-python-imports
name: Reorder python imports
entry: reorder-python-imports
language: system
types: [python]
args: [--application-directories=src]
- id: trailing-whitespace
name: Trim Trailing Whitespace
entry: trailing-whitespace-fixer
Expand Down
36 changes: 11 additions & 25 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,10 @@ safety = "^2.2.0"
mypy = "^0.910"
black = "^22.12.0"
pre-commit = "^2.16.0"
pep8-naming = "^0.12.0"
darglint = "^1.8.0"
reorder-python-imports = "^2.6.0"
pre-commit-hooks = "^4.0.1"
Pygments = "^2.9.0"
ruff = "~0.0.1"
pydocstyle = "^6.2.1"

[tool.poetry.group.docs.dependencies]
markdown-include = "^0.8.0"
Expand Down Expand Up @@ -86,20 +83,8 @@ ignore_missing_imports = true
src = ['src', 'tests']
ignore = [
'B019',
'D203',
'D204',
'D213',
'D215',
'D400',
'D404',
'D406',
'D407',
'D408',
'D409',
'D413',
'E501'
]
line-length = 80
line-length = 88
target-version = 'py37'
select = [
'A',
Expand All @@ -120,6 +105,7 @@ select = [
'PTH',
'Q',
'RET',
'RUF',
'S',
'SIM',
'SLF',
Expand All @@ -129,15 +115,6 @@ select = [
'W',
]

[tool.ruff.mccabe]
max-complexity = 10

[tool.ruff.pydocstyle]
convention = 'google'

[tool.ruff.isort]
force-single-line = true

[tool.ruff.per-file-ignores]
"__init__.py" = ['F401']
"tests/*" = [
Expand All @@ -148,6 +125,15 @@ force-single-line = true
'D104',
]

[tool.ruff.mccabe]
max-complexity = 10

[tool.ruff.pydocstyle]
convention = 'google'

[tool.ruff.isort]
force-single-line = true

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
2 changes: 1 addition & 1 deletion tests/unit/config_sources/test_toml_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ def test_toml_decode_error(self, create_toml: Callable[..., Path]) -> None:

toml_source = TomlSource(filepath=toml_path, project_name="acme")

error_regex = re.escape(f"Error trying to load toml file '{str(toml_path)}'")
error_regex = re.escape(f"Error trying to load toml file '{toml_path!s}'")
with pytest.raises(BadTomlError, match=error_regex):
toml_source.to_dict()

0 comments on commit d57c432

Please sign in to comment.