Skip to content

Commit

Permalink
🔧 Tweak development scripts and configs after migration to PDM, Ruff,…
Browse files Browse the repository at this point in the history
… etc.
  • Loading branch information
tiangolo committed Apr 10, 2024
1 parent 525c777 commit f7471c5
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 35 deletions.
9 changes: 0 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,6 @@ excludes = ["typer", "tests", "pdm_build.py"]
# doesn't override it during the build.
source-includes = [""]

[tool.isort]
profile = "black"
known_third_party = ["typer", "click"]
skip_glob = [
"docs_src/subcommands/tutorial001/main.py",
"docs_src/subcommands/tutorial003/lands.py",
"docs_src/subcommands/tutorial003/main.py",
]

[tool.pytest.ini_options]
addopts = [
"--strict-config",
Expand Down
2 changes: 1 addition & 1 deletion requirements-tests.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-e .[all]
-e .

pytest >=4.4.0,<8.0.0
pytest-cov >=2.10.0,<5.0.0
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-e .[all]
-e .

-r requirements-tests.txt
-r requirements-docs.txt
Expand Down
6 changes: 0 additions & 6 deletions scripts/format-imports.sh

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
set -x
set -e

ruff typer tests docs_src scripts --fix
ruff check typer tests docs_src scripts --fix
ruff format typer tests docs_src scripts
2 changes: 1 addition & 1 deletion scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ set -e
set -x

mypy typer
ruff typer tests docs_src
ruff check typer tests docs_src
ruff format typer tests docs_src --check
5 changes: 0 additions & 5 deletions scripts/publish.sh

This file was deleted.

11 changes: 0 additions & 11 deletions scripts/zip-docs.sh

This file was deleted.

0 comments on commit f7471c5

Please sign in to comment.