]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
poe: added code formatting command
authorAleš <ales.mrazek@nic.cz>
Mon, 22 Mar 2021 18:13:54 +0000 (19:13 +0100)
committerAleš Mrázek <ales.mrazek@nic.cz>
Fri, 8 Apr 2022 14:17:51 +0000 (16:17 +0200)
manager/README.md
manager/pyproject.toml

index 84f87d814948aabb852afe82ce68c79ba41d72fd..06ee147bb483cd6527cf2f2b638c6a797a71c08f 100644 (file)
@@ -40,6 +40,7 @@ After setting up the environment, you should be able to interract with the proje
 * `poe test` - unit tests
 * `poe tox` - unit tests in all supported Python versions (must not be run outside of virtualenv, otherwise it fails to find multiple versions of Python)
 * `poe check` - static code analysis
+* `poe format` - runs code formater
 * `poe fixdeps` - update installed dependencies according to the project's configuration
 * `poe clean` - cleanup the repository from unwanted files
 * `poe integration` - run the integration tests
index 3b27ebd396d9c16e0aa1fbbad552b75e9865663b..dd0dbb033fcfc5d89bffe17732c746015ff68e87 100644 (file)
@@ -30,6 +30,7 @@ click = "^7.1.2"
 run = { cmd = "python -m knot_resolver_manager", help = "Run the manager" }
 test = { cmd = "pytest --cov=knot_resolver_manager --show-capture=all tests/", help = "Run tests" }
 check = { cmd = "scripts/codecheck", help = "Run static code analysis" }
+format = { cmd = "poetry run black knot_resolver_manager", help = "Run 'Black' code formater" }
 fixdeps = { shell = "poetry install; yarn install", help = "Install/update dependencies according to configuration files"}
 clean = """
   rm -rf .coverage
@@ -62,7 +63,6 @@ commands =
     ./poe test
 """
 
-
 # pylint configuration copied from apkg (https://gitlab.nic.cz/packaging/apkg/-/blob/master/pylintrc)
 [tool.pylint."MESSAGES CONTROL"]
 disable= [