Commit graph

7405 commits

Author SHA1 Message Date
Dimitri
851ca30be5 issue #2243 -- prefer f-strings over %-interpolation
edited docs to prefer f-strings, then str.format(), and remove %-interpolation

additional ad-hoc documentation fixes, as opportunities seen:
- replace Built-In Function (BIF) "min" variable with "mins"
- prefer BIF str(var) over "%s" % var
- reformat some code examples to clarify multiple args passed to functions
- change some single-quote strings to double-quotes for consistency
- fix mismatched parens

misc edits:
- add .vscode/ to gitignore
2021-10-12 12:13:42 -06:00
Griatch
f45051050e Merge pull request #2559 from dimitrilw/dev-i2262-docstring-location
Dev i2262 docstring location
2021-10-12 19:20:32 +02:00
Griatch
ae2369a17b Merge pull request #2558 from dimitrilw/dev-docs-no-reuse-BIFs
Dev docs no reuse BIFs
2021-10-12 19:17:39 +02:00
Dimitri
d568decca1 Merge branch 'dev-docs-no-reuse-BIFs' of github.com:dimitrilw/evennia into dev-docs-no-reuse-BIFs 2021-10-12 07:14:42 -06:00
Dimitri
e98ea55d98 fix #2549 -- no reuse BIF names
- fixed docs to not demonstrate reuse of built-in function
  names "str" and "int", even when within a one-off script

- note: did *not* change the "str" and "int" shown in
  Howto/Starting/Part1/Learning-Typeclasses.md file,
  as those are class variables (i.e., Character.str and
  Character.int), which does not replace the BIFs of
  str() and int(). Therefore, methods inside the class
  can still use the python BIFs. While this is possibly
  confusing to new python programmers, it is also not
  within the scope of #2549.

misc edits:
- add .vscode/ to gitignore
2021-10-12 07:14:38 -06:00
Dimitri
95a8022b59 Merge branch 'dev-i2262-docstring-location' of github.com:dimitrilw/evennia into dev-i2262-docstring-location 2021-10-12 07:13:00 -06:00
Dimitri
9227dd3f78 issue #2262 -- add docstring for location arg 2021-10-12 07:12:12 -06:00
Griatch
798fb7d92d Merge pull request #2557 from dimitrilw/dev-fix-md-fmt-in-Links-doc
fixed broken links & nested bullets
2021-10-12 10:18:48 +02:00
Griatch
9de5a082ec Merge pull request #2556 from dimitrilw/dev-tweak-diku-users-helpfile
small edits to the Evennia-for-Diku-Users.md file
2021-10-12 10:15:43 +02:00
Dimitri
c374dc6e1e fixed broken links & nested bullets 2021-10-11 09:45:59 -06:00
Dimitri
2cc3125f2d small edits to the Evennia-for-Diku-Users.md file
- fix demo C block's semicolons
- minor edits for readability
- punctuation tweaks
2021-10-10 15:17:50 -06:00
Dimitri
93bf01c737 issue #2262 -- add docstring for location arg 2021-10-10 13:28:27 -06:00
Dimitri
f2bcd1949b fix #2549 -- no reuse BIF names
- fixed docs to not demonstrate reuse of built-in function
  names "str" and "int", even when within a one-off script

- note: did *not* change the "str" and "int" shown in
  Howto/Starting/Part1/Learning-Typeclasses.md file,
  as those are class variables (i.e., Character.str and
  Character.int), which does not replace the BIFs of
  str() and int(). Therefore, methods inside the class
  can still use the python BIFs. While this is possibly
  confusing to new python programmers, it is also not
  within the scope of #2549.

misc edits:
- add .vscode/ to gitignore
2021-10-09 21:21:23 -06:00
Griatch
ff61e014d7 Make EvMore auto-exit and change display text. Resolve #2361. 2021-10-09 18:44:18 +02:00
Griatch
73990e851c Refactor Permissions documentation 2021-10-09 17:21:37 +02:00
Griatch
2a8cc57bbe Add strip_unsafe_input/INPUT_CLEANUP_BYPASS_PERMISSIONS helpers to strip unsafe input on a per-command level. Resolves #1738. 2021-10-09 16:27:58 +02:00
Griatch
0556f527fe Add .permissions.check() to easily do straight perm-checks without lockstrings 2021-10-09 16:23:13 +02:00
Griatch
71092f17f7 Make @lazy_property handlers read/write protected to avoid common newbie mistakes, like assigning obj.locks = [] 2021-10-09 14:33:40 +02:00
Griatch
a7b99a605b Add LOCALECHO client option for clients not supporting local echoing. Resolve #2258. 2021-10-09 00:36:17 +02:00
Griatch
49886dbff3 Add confirm to set/edit for non-string Attributes. Resolves #2222 2021-10-09 00:11:30 +02:00
Griatch
e4013dbdb8 Ask for confirm in default account creation. Resolves #1523 2021-10-08 22:46:50 +02:00
Griatch
1a581162bc Change assign to use .key instead of .name. Resolve #2530. 2021-10-08 01:06:50 +02:00
Griatch
bf2c4f151b Refactor return_apperance hook to make it easier to override. Resolves #2530, Resolves #2362. 2021-10-08 01:04:55 +02:00
Griatch
074f3bf068 Resolve merge conflict 2021-10-06 08:47:48 +02:00
Griatch
6e03216cd9 Merge pull request #2546 from shaunoakenfull/2249
triple quotes
2021-10-06 08:46:40 +02:00
Griatch
8ade25d1ec Merge branch 'master' into develop 2021-10-06 08:45:22 +02:00
Griatch
e4a7c14c75 Merge pull request #2545 from shaunoakenfull/master
Fix typo in comment
2021-10-06 08:45:00 +02:00
Shaun Oakenfull
c938b89cfe triple quotes
[Documentation] add triple quotes for docstring
2021-10-06 08:52:09 +10:00
Shaun Oakenfull
e594864373 Revert "add triple quotes for docstring"
This reverts commit 7b9fccd9e6.
2021-10-06 08:49:10 +10:00
Shaun Oakenfull
7b9fccd9e6 add triple quotes for docstring 2021-10-06 08:46:04 +10:00
Shaun Oakenfull
d32d1eb6db Fix typo in comment
environments typo corrected.
2021-10-06 08:24:21 +10:00
Griatch
0fcae38fb1 Merge branch 'master' into develop 2021-10-05 23:25:20 +02:00
Griatch
4136298695 Up min Django version to 3.2. Update recommended. 2021-10-05 23:22:50 +02:00
Griatch
d84879cc43 Disable timekeeping test to work with slower CI build env 2021-10-05 22:20:14 +02:00
Griatch
c3df322a70 Move scipy requirement to requirements_extra.txt 2021-10-05 22:04:55 +02:00
Griatch
a290ec67fc Merge branch 'issue_2506' of https://github.com/Henddher/evennia into Henddher-issue_2506 2021-10-05 21:59:01 +02:00
Griatch
e77bf5ce25 Merge branch 'master' into develop 2021-10-05 21:56:43 +02:00
Griatch
7f1d4594ff Merge pull request #2542 from Henddher/issue_2261
Issue 2261
2021-10-05 21:56:27 +02:00
Griatch
b945b69238 Resolve merge conflicts 2021-10-05 21:54:27 +02:00
Griatch
1cc939666d Merge pull request #2541 from Henddher/issue_2478
Typos fixed.
2021-10-05 21:52:08 +02:00
Griatch
68265994fa Apply doc change from master branch 2021-10-05 21:51:19 +02:00
Griatch
6aaef1c392 Merge pull request #2539 from marado/master
Getting Started: more troubleshooting info
2021-10-05 21:49:45 +02:00
Griatch
cc7f870292 Merge pull request #2536 from jamesbeebop/doc-fix
small change to first steps doc
2021-10-05 21:46:11 +02:00
henddher
42feb07a08 Add missing dependency scipy. Contrib xyzroom needs it. 2021-10-03 18:51:16 -05:00
henddher
bfd6ece47c Addition of BROADCAST_SERVER_RESTART_MESSAGES flag to notify all sessions that the server is restarting. 2021-10-03 18:05:03 -05:00
henddher
182a969290 Unit test 2021-10-03 17:04:41 -05:00
henddher
33b61a9484 Convert key to lowercase in search_prototype. 2021-10-03 16:56:45 -05:00
henddher
b3679861f1 Typos fixed. 2021-10-03 15:40:35 -05:00
Griatch
8e382d9383 Resolve merge conflicts 2021-10-02 19:20:58 +02:00
Griatch
d6ddbd5704 Lower maxnum of channel lines for web display 2021-10-02 19:16:47 +02:00