Initial configuration

master
Антон Касимов 2021-10-12 12:53:22 +03:00
parent 71799936dc
commit 4115107c0a
Signed by: toxa
GPG Key ID: CC3C1E3EA2534D0C
7 changed files with 60 additions and 0 deletions

12
nitpick/all.toml Normal file
View File

@ -0,0 +1,12 @@
[nitpick]
minimum_version = "0.27.0"
[nitpick.styles]
include = [
"file-structure.toml",
"styleguide.toml",
"flake8.toml",
"isort.toml",
"darglint.toml",
"pytest.toml"
]

2
nitpick/darglint.toml Normal file
View File

@ -0,0 +1,2 @@
["setup.cfg".flake8]
strictness = "long"

View File

@ -0,0 +1,17 @@
[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"
".isort.cfg" = "Move values to setup.cfg, section [isort]"
".flake8" = "Move values to setup.cfg, section [flake8]"
"mypy.ini" = "Move values to setup.cfg, section [mypy]"
".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]
"CHANGELOG.md" = "A project should have `CHANGELOG.md`"
"README.md" = "A project should have `README.md`"
".gitignore" = "A project should have `.gitignore` file"

4
nitpick/flake8.toml Normal file
View File

@ -0,0 +1,4 @@
["setup.cfg".flake8]
per-file-ignores = "tests/**.py: S101, D103, ANN201"
spellcheck-targets = "comments"
sql-excepted-names = "EXISTS"

4
nitpick/isort.toml Normal file
View File

@ -0,0 +1,4 @@
["setup.cfg".isort]
multi_line_output = 3
include_trailing_comma = true
use_parentheses = true

8
nitpick/pytest.toml Normal file
View File

@ -0,0 +1,8 @@
["pyproject.toml".tool.poetry.dev-dependencies]
pytest = "^6.2.3"
pytest-cov = "^2.8.1"
pytest-asyncio = "^0.15.1"
pytest-xdist = {extras = ["psutil"], version = "^2.1.0"}
pytest-sugar = "^0.9.4"
Faker = "^8.0.0"
snapshottest = "^0.6.0"

13
nitpick/styleguide.toml Normal file
View File

@ -0,0 +1,13 @@
["pyproject.toml".tool.poetry.dependencies]
python = "^3.9"
["pyproject.toml".tool.poetry.dev-dependencies]
wemake-python-styleguide = "^0.15.0"
flake8-pytest-style = "^1.3.0"
flake8-SQL = "^0.4.1"
flake8-annotations = "^2.4.1"
flake8-logging-format = "^0.6.0"
flake8-coding = "^1.3.2"
flake8-spellcheck = "^0.24.0"
autopep8 = "^1.5.4"
isort = "^5.7.0"