Добавление editorconfig

master
Антон Касимов 2022-10-30 02:13:40 +03:00
parent 1d9ae7a9df
commit 48f1c3d28c
Signed by: toxa
SSH Key Fingerprint: SHA256:fGoT3aBWeTp6/0uhMz56IJDyZDzSbRc06AdWcNcRxNg
4 changed files with 32 additions and 7 deletions

View File

@ -3,6 +3,7 @@ minimum_version = "0.32.0"
[nitpick.styles]
include = [
"editorconfig.toml",
"file-structure.toml",
"styleguide.toml",
"flake8.toml",

25
nitpick/editorconfig.toml Normal file
View File

@ -0,0 +1,25 @@
[nitpick.meta]
name = "EditorConfig"
url = "http://editorconfig.org/"
[".editorconfig"]
# top-most EditorConfig file
root = true
[".editorconfig"."*"]
# Unix-style newlines with a newline ending every file
end_of_line = "lf"
insert_final_newline = true
indent_style = "space"
indent_size = 2
charset = "utf-8"
# Whitespace at the end of lines
trim_trailing_whitespace = true
[".editorconfig"."*.py"]
indent_size = 4
# Tab indentation (no size specified)
[".editorconfig".Makefile]
indent_style = "tab"

View File

@ -1,15 +1,14 @@
[nitpick.files.absent]
"requirements.txt" = "Install poetry, run 'poetry init' to create pyproject.toml, and move dependencies to it"
"Pipfile" = "Use pyproject.toml instead"
"Pipfile.lock" = "Use pyproject.toml instead"
[nitpick.styles]
include = [
"py://nitpick/resources/python/absent"
]
[nitpick.files.absent]
".isort.cfg" = "Move values to pyproject.toml, section [tool.isort]"
".flake8" = "Move values to setup.cfg, section [flake8]"
"mypy.ini" = "Move values to pyproject.toml, section [tool.mypy]"
"pytest.ini" = "Move values to pyproject.toml, section [tool.pytest.ini_options]"
".travis.yml" = "Travis is shutting down, please switch to some other CI service"
".pyup.yml" = "Configure your CI with safety instead: https://github.com/pyupio/safety#using-safety-with-a-ci-service"
[nitpick.files.present]

View File

@ -1,7 +1,7 @@
["pyproject.toml".tool.poetry.group.dev.dependencies]
pytest = "^7.2.0"
pytest-cov = "^4.0.0"
pytest-xdist = '{extras = ["psutil"], version = "^3.0.2"}'
pytest-xdist = {extras = ["psutil"], version = "^3.0.2"}
pytest-sugar = "^0.9.5"
Faker = "^15.1.0"
pytest-snapshot = "^0.9.0"