Skip to content

Commit 9f147cb

Browse files
authored
Merge pull request #98 from HYP3R00T/master
Copy button added to code block in documentation
2 parents a1b4d15 + 9de9031 commit 9f147cb

File tree

3 files changed

+28
-38
lines changed

3 files changed

+28
-38
lines changed

docs/mkdocs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ theme:
1919
toggle:
2020
icon: material/weather-sunny
2121
name: Switch to light mode
22-
22+
23+
features:
24+
- content.code.copy
25+
2326
site_name: BeauPy
2427

2528
markdown_extensions:

poetry.lock

Lines changed: 20 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,13 @@ add = { shell = 'poetry add' }
2525
install = { shell = 'poetry install' }
2626
build = { shell = 'poetry build' }
2727
clean = { shell = 'rm -R ./dist .pytest_cache .mypy_cache &> /dev/null' }
28-
2928
isort = { shell = 'poetry run isort ./beaupy' }
3029
black = { shell = 'poetry run black ./beaupy --skip-string-normalization' }
3130
mypy = { shell = 'poetry run mypy ./beaupy/' }
3231
flake8 = { shell = 'poetry run pflake8 ./beaupy/' }
3332
perflint = { shell = "poetry run perflint ./beaupy/" }
3433
lint = { shell = 'echo "Running isort..." ; poetry run poe isort; echo "Running black..." ; poetry run poe black ; echo "Running unify..." ; poetry run unify ./beaupy -r -i ; echo "Running flake8..." ; poetry run poe flake8 ; echo "Running mypy..." ; poetry run poe mypy ; echo Done!' }
3534
"lint:watch" = { shell = "poetry run poe lint ; poetry run watchmedo shell-command --patterns='*.py;*.feature;*.toml' --recursive --drop --command='poetry run poe lint'" }
36-
3735
"test" = { shell = "poetry run ward" }
3836
"test:watch" = { shell = "poetry run poe test; poetry run watchmedo shell-command --patterns='*.py;*.feature;*.toml' --recursive --drop --command='poetry run poe test'" }
3937

@@ -44,21 +42,16 @@ emoji = "^2.0.0"
4442
python-yakh = "0.3.2"
4543
questo = "^0.2.3"
4644

47-
4845
[tool.mypy]
49-
5046
files = ["src"]
5147
warn_return_any = true
5248
warn_unused_configs = true
53-
5449
disallow_untyped_defs = true
5550
disallow_incomplete_defs = true
5651
disallow_untyped_decorators = true
57-
5852
warn_redundant_casts = true
5953
warn_unreachable = true
6054
warn_unused_ignores = true
61-
6255
show_column_numbers = true
6356
ignore_missing_imports = true
6457

@@ -71,10 +64,9 @@ profile = "black"
7164
[tool.flake8]
7265
max-line-length = 140
7366
max-complexity = 18
74-
select = ["B","E","F","W","T4","B9"]
67+
select = ["B", "E", "F", "W", "T4", "B9"]
7568

7669
[[tool.pydoc-markdown.loaders]]
77-
7870
type = 'python'
7971
search_path = ['./beaupy']
8072

@@ -92,13 +84,13 @@ report_type = ["term", "xml"]
9284
source = ["."]
9385
branch = true
9486
relative_files = true
95-
report = {skip_empty = true}
87+
report = { skip_empty = true }
9688

9789
[tool.poetry.group.test.dependencies]
9890
expycted = '*'
9991
mock = '*'
10092
poethepoet = '*'
101-
ward = "^0.67.1b0"
93+
ward = "^0.68.0b0"
10294
ward-coverage = "^0.3.0"
10395

10496
[tool.poetry.group.dev.dependencies]
@@ -107,18 +99,15 @@ mypy = '*'
10799
pyproject-flake8 = "*"
108100
flake8 = "<5"
109101
black = "^22.6.0"
110-
111102
## Bugs
112103
flake8-simplify = '*'
113104
flake8-pie = '*'
114105
flake8-bandit = '*'
115-
116106
## Complexity
117107
flake8-cognitive-complexity = '*'
118108
flake8-expression-complexity = '*'
119109
radon = '*'
120110
xenon = '*'
121-
122111
## Lints
123112
flake8-quotes = '*'
124113
flake8-print = '*'
@@ -127,24 +116,18 @@ flake8-comments = '*'
127116
toml-sort = '*'
128117
isort = '*'
129118
unify = "*"
130-
131119
## Performance
132120
perflint = '*'
133-
134121
# Expect Pattern Testing
135122
expycted = '*'
136-
137123
# Unit Testing
138-
ward = "^0.67.1b0"
124+
ward = "^0.68.0b0"
139125
mock = '*'
140126
watchdog = '*'
141-
142127
# Coverage
143128
ward-coverage = "^0.3.0"
144-
145129
# Task Runner
146130
poethepoet = '*'
147-
148131
# Docs
149132
pydoc-markdown = "^4.6.3"
150133
types-emoji = "^2.0.1"

0 commit comments

Comments
 (0)